Fix README to only show badges for current branch #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: macOS | |
| # Dependencies of this package | |
| env: | |
| MACOS_BREW: ${{ 'pango glib glib-networking gobject-introspection pkg-config jq' }} | |
| on: | |
| push: | |
| branches: [development, main] | |
| pull_request: | |
| branches: [development, main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-macos: | |
| name: macOS (Xcode ${{ matrix.xcode }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-15 | |
| xcode: "16.3" | |
| - os: macos-14 | |
| xcode: "16.2" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| path: SwiftPango | |
| - name: Select Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: ${{ matrix.xcode }} | |
| - name: Swift version | |
| run: swift --version | |
| - name: Fetch macOS dependencies | |
| run: | | |
| brew install python@3 || brew link --overwrite python@3 | |
| brew install $MACOS_BREW | |
| mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig || sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig | |
| - name: Build | |
| run: cd SwiftPango && swift build | |
| - name: Test | |
| run: cd SwiftPango && swift test |