Fix release build: require ASDF in Makefile, fail-fast #402
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: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Full history for git describe | |
| - name: Install system dependencies | |
| run: | | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| brew install sbcl ocicl dejagnu | |
| ocicl setup >> ~/.sbclrc | |
| patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 \ | |
| --set-rpath /lib64 \ | |
| /home/linuxbrew/.linuxbrew/Cellar/sbcl/*/libexec/bin/sbcl | |
| - name: Get version info | |
| id: version | |
| run: | | |
| git fetch --prune --tags | |
| VERSION=$(git describe --tags --dirty=+) | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Version: $VERSION" | |
| - name: Install project dependencies | |
| run: | | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| ocicl install | |
| - name: Build binary | |
| run: | | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| make rlgl | |
| - name: Run tests | |
| run: | | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| make check |