ci: keep rust-complex
up-to-date
#1970
This file contains 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: check | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: "nix flake check" | |
strategy: | |
matrix: | |
platform: | |
- host: macos-latest | |
- host: ubuntu-latest | |
runs-on: ${{ matrix.platform.host }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-nix | |
with: | |
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Set Swap Space | |
if: ${{ runner.os == 'Linux' }} | |
uses: pierotofy/set-swap-space@v1.0 | |
with: | |
swap-size-gb: 10 | |
- name: Free Disk Space | |
if: ${{ runner.os == 'Linux' }} | |
uses: jlumbroso/free-disk-space@v1.3.1 | |
with: | |
tool-cache: false | |
- run: nix flake check -L --show-trace | |
continue-on-error: ${{ runner.os == 'macOS' }} |