Release v3.5.1 #850
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - detsys-main | |
| - main | |
| - master | |
| merge_group: | |
| permissions: | |
| id-token: "write" | |
| contents: "read" | |
| jobs: | |
| eval: | |
| runs-on: blacksmith-32vcpu-ubuntu-2204 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - run: nix flake show --all-systems --json | |
| build_x86_64-linux: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| os: blacksmith-32vcpu-ubuntu-2204 | |
| system: x86_64-linux | |
| build_aarch64-linux: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| if: ${{ github.event_name == 'merge_group' }} | |
| os: blacksmith-32vcpu-ubuntu-2204-arm | |
| system: aarch64-linux | |
| build_x86_64-darwin: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| if: ${{ github.event_name == 'merge_group' }} | |
| os: namespace-profile-mac-m2-12c28g | |
| system: x86_64-darwin | |
| build_aarch64-darwin: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| os: namespace-profile-mac-m2-12c28g | |
| system: aarch64-darwin | |
| vm_tests_smoke: | |
| if: github.event_name != 'merge_group' | |
| needs: build_x86_64-linux | |
| runs-on: blacksmith-32vcpu-ubuntu-2204 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - run: | | |
| nix build -L \ | |
| .#hydraJobs.tests.functional_user \ | |
| .#hydraJobs.tests.githubFlakes \ | |
| .#hydraJobs.tests.nix-docker \ | |
| .#hydraJobs.tests.tarballFlakes \ | |
| ; | |
| vm_tests_all: | |
| if: github.event_name == 'merge_group' | |
| needs: build_x86_64-linux | |
| runs-on: blacksmith-32vcpu-ubuntu-2204 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - run: | | |
| nix build -L --keep-going \ | |
| $(nix flake show --json \ | |
| | jq -r ' | |
| .hydraJobs.tests | |
| | with_entries(select(.value.type == "derivation")) | |
| | keys[] | |
| | ".#hydraJobs.tests." + .') | |
| flake_regressions: | |
| if: | | |
| github.event_name == 'merge_group' | |
| || ( | |
| github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src' | |
| && ( | |
| (github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test') | |
| || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test')) | |
| ) | |
| ) | |
| needs: build_x86_64-linux | |
| runs-on: namespace-profile-x86-32cpu-64gb | |
| steps: | |
| - name: Checkout nix | |
| uses: actions/checkout@v4 | |
| - name: Checkout flake-regressions | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: DeterminateSystems/flake-regressions | |
| path: flake-regressions | |
| - name: Checkout flake-regressions-data | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: DeterminateSystems/flake-regressions-data | |
| path: flake-regressions/tests | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh | |
| flake_regressions_lazy: | |
| if: | | |
| github.event_name == 'merge_group' | |
| || ( | |
| github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src' | |
| && ( | |
| (github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test') | |
| || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test')) | |
| ) | |
| ) | |
| needs: build_x86_64-linux | |
| runs-on: namespace-profile-x86-32cpu-64gb | |
| steps: | |
| - name: Checkout nix | |
| uses: actions/checkout@v4 | |
| - name: Checkout flake-regressions | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: DeterminateSystems/flake-regressions | |
| path: flake-regressions | |
| - name: Checkout flake-regressions-data | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: DeterminateSystems/flake-regressions-data | |
| path: flake-regressions/tests | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" NIX_CONFIG="lazy-trees = true" flake-regressions/eval-all.sh | |
| manual: | |
| if: github.event_name != 'merge_group' | |
| needs: build_x86_64-linux | |
| runs-on: blacksmith | |
| permissions: | |
| id-token: "write" | |
| contents: "read" | |
| pull-requests: "write" | |
| statuses: "write" | |
| deployments: "write" | |
| steps: | |
| - name: Checkout nix | |
| uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| determinate: true | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - name: Build manual | |
| run: nix build .#hydraJobs.manual | |
| - uses: nwtgck/actions-netlify@v3.0 | |
| with: | |
| publish-dir: "./result/share/doc/nix/manual" | |
| production-branch: detsys-main | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| deploy-message: "Deploy from GitHub Actions" | |
| # NOTE(cole-h): We have a perpetual PR displaying our changes against upstream open, but | |
| # its conversation is locked, so this PR comment can never be posted. | |
| # https://github.com/DeterminateSystems/nix-src/pull/4 | |
| enable-pull-request-comment: ${{ github.event.pull_request.number != 4 }} | |
| enable-commit-comment: true | |
| enable-commit-status: true | |
| overwrites-pull-request-comment: true | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |