dylwhich is building platform-midi #53
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 Examples | |
| run-name: ${{ github.actor }} is building platform-midi | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| Build-Windows: | |
| runs-on: windows-latest | |
| steps: | |
| # - name: Debug print event | |
| # run: echo '${{ toJSON(github.event) }}' | |
| - name: Check out repository code | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive | |
| - name: Create a version file | |
| run: | | |
| printf "Commit: https://github.com/dylwhich/platform-midi/commit/$(git rev-parse HEAD) \nBuilt at: $(date)" >> version.txt | |
| - name: Install msys64 packages | |
| run: | | |
| C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S base-devel gcc gdb zip' | |
| - name: Compile Examples | |
| run: | | |
| $env:path = $env:path.Insert($env:path.ToLower().IndexOf("c:\windows\system32"), "C:\msys64\mingw64\bin;C:\msys64\usr\bin;") | |
| make -j2 examples | |
| ./examples/loopback | |
| Build-OSX-arm: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive | |
| - name: Create a version file | |
| run: | | |
| printf "Commit: https://github.com/dylwhich/platform-midi/commit/$(git rev-parse HEAD) \nBuilt at: $(date)" >> version.txt | |
| - name: Compile Examples | |
| run: | | |
| make -j3 examples | |
| ./examples/loopback | |
| Build-OSX-intel: | |
| runs-on: macos-13 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive | |
| - name: Create a version file | |
| run: | | |
| printf "Commit: https://github.com/dylwhich/platform-midi/commit/$(git rev-parse HEAD) \nBuilt at: $(date)" >> version.txt | |
| - name: Compile Examples | |
| run: | | |
| make -j4 examples | |
| ./examples/loopback | |
| Build-Linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive | |
| - name: Create a version file | |
| run: | | |
| printf "Commit: https://github.com/dylwhich/platform-midi/commit/$(git rev-parse HEAD) \nBuilt at: $(date)" >> version.txt | |
| - name: Install packages | |
| run: | | |
| sudo apt-get install -y build-essential alsa-base libasound2 libasound2-dev | |
| - name: Compile Examples | |
| run: | | |
| make -j4 examples | |
| ./examples/loopback |