Merge pull request #118 from octalide/dev #33
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: CI | |
| on: | |
| pull_request: | |
| branches: [dev, main] | |
| push: | |
| branches: [dev, main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install mach | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| mkdir -p /tmp/machdl | |
| gh release download --repo octalide/mach \ | |
| --pattern 'mach-*-x86_64-linux.tar.gz' --dir /tmp/machdl --clobber | |
| tar -xzf /tmp/machdl/mach-*-x86_64-linux.tar.gz -C /tmp/machdl | |
| cp /tmp/machdl/mach /usr/local/bin/mach | |
| chmod +x /usr/local/bin/mach | |
| mach info | |
| - name: Pull dependencies | |
| run: mach dep pull | |
| - name: Build | |
| run: mach build . | |
| - name: Test | |
| run: mach test . |