Skip to content

ci(nix): cache pinned CUDA 11.8 closure + add pin-drift assertions #358

ci(nix): cache pinned CUDA 11.8 closure + add pin-drift assertions

ci(nix): cache pinned CUDA 11.8 closure + add pin-drift assertions #358

Workflow file for this run

name: Tests
on:
push:
pull_request:
release:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
ci-guardrails:
name: CI guardrails
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: Run CI contract unit tests
run: python3 -m unittest -v ci.tests.test_check_ci_contracts
- name: Run CI guardrails
run: bash ci/run_local_ci_parity.sh --guardrails-only
full-build-test:
name: Full Linux build and test parity
needs: ci-guardrails
runs-on: ubuntu-22.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Restore and save Nix store cache
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('flake.nix', 'flake.lock') }}
restore-prefixes-first-match: |
nix-${{ runner.os }}-${{ runner.arch }}-
nix-${{ runner.os }}-
gc-max-store-size-linux: 6G
- name: Build and test full parity flow
run: bash ci/run_local_ci_parity.sh --build-test-only
build-linux-release-style:
name: Release-style Linux packaging build
needs: ci-guardrails
uses: ./.github/workflows/build_linux_tools.yml
with:
checkout_ref: ${{ github.sha }}
secrets: inherit
build-windows-release-style:
name: Release-style Windows packaging build
needs: ci-guardrails
uses: ./.github/workflows/build_windows_tools.yml
with:
checkout_ref: ${{ github.sha }}
secrets: inherit
build-macos-release-style:
name: Release-style macOS packaging build
needs: ci-guardrails
uses: ./.github/workflows/build_macos_tools.yml
with:
checkout_ref: ${{ github.sha }}
secrets: inherit