Merge pull request #2 from dsward2/exit-with-parent-watchdog #21
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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.config }}) | |
| runs-on: macos-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [debug, release] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Install libmp3lame | |
| run: brew install lame pkg-config | |
| - name: Verify pkg-config sees mp3lame | |
| run: pkg-config --libs mp3lame | |
| - name: Build | |
| run: swift build -c ${{ matrix.config }} | |
| - name: Test | |
| if: matrix.config == 'debug' | |
| run: swift test |