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 and test macOS x86_64 | |
| on: | |
| push: | |
| workflow_dispatch: | |
| concurrency: | |
| group: mac-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-13, macos-14] | |
| racket-variant: ['CS'] | |
| racket-version: ['8.18'] | |
| include: | |
| - os: macos-13 | |
| arch: x64 | |
| - os: macos-14 | |
| arch: arm64 | |
| runs-on: ${{ matrix.os }} | |
| name: Test on ${{ matrix.os }} (${{ matrix.arch }}) Racket ${{ matrix.racket-variant }} ${{ matrix.racket-version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install nasm | |
| run: | | |
| HOMEBREW_NO_AUTO_UPDATE=1 brew tap cmsc430/tap | |
| HOMEBREW_NO_AUTO_UPDATE=1 brew install nasm430 | |
| - name: Install Racket | |
| uses: Bogdanp/setup-racket@v1.14 | |
| with: | |
| architecture: 'x64' | |
| distribution: 'full' | |
| variant: ${{ matrix.racket-variant }} | |
| version: ${{ matrix.racket-version }} | |
| - name: Cache Racket packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.racket | |
| ~/.cache/racket | |
| key: racket-${{ matrix.racket-variant }}-${{ matrix.racket-version }}-${{ matrix.os }} | |
| - name: Version info | |
| run: | | |
| uname -a | |
| uname -m | |
| nasm --version | |
| gcc --version | |
| - name: Install langs package | |
| run: raco pkg install --auto ../langs/ | |
| - name: Run tests | |
| run: raco test -p langs |