Auto update 2025-01-27 #5
Workflow file for this run
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: PullRequest checker | |
on: | |
pull_request: | |
jobs: | |
generate_matrix: | |
runs-on: ubuntu-20.04 | |
outputs: | |
packages: ${{ steps.gen_packages.outputs.packages }} | |
checks: ${{ steps.gen_checks.outputs.checks }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: "${{ secrets.TEST_TOKEN }}" | |
- name: Install nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.TEST_TOKEN }} | |
experimental-features = nix-command flakes | |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org https://nobbz.cachix.org | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nobbz.cachix.org-1:fODxpqE4ni+pFDSuj2ybYZbMUjmxNTjA7rtUNHW61Ok= | |
install_url: https://releases.nixos.org/nix/nix-2.25.0/install | |
- name: Generate flake.json | |
run: | | |
nix flake show --json > flake.json | |
- id: gen_packages | |
run: | | |
packages=$(jq -c '.packages."x86_64-linux" | keys' < flake.json) | |
printf "packages=%s" "$packages" >> $GITHUB_OUTPUT | |
- id: gen_checks | |
run: | | |
checks=$(jq -c '.checks."x86_64-linux" | keys' < flake.json) | |
printf "checks=%s" "$checks" >> $GITHUB_OUTPUT | |
build_flake: | |
runs-on: ubuntu-20.04 | |
needs: [generate_matrix] | |
strategy: | |
fail-fast: false | |
max-parallel: 5 | |
matrix: | |
package: ${{fromJson(needs.generate_matrix.outputs.packages)}} | |
steps: | |
- name: Free diskspace | |
uses: easimon/maximize-build-space@master | |
with: | |
build-mount-path: /nix | |
root-reserve-mb: 5120 | |
remove-dotnet: true | |
remove-android: true | |
remove-haskell: true | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: "${{ secrets.TEST_TOKEN }}" | |
- name: Install nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.TEST_TOKEN }} | |
experimental-features = nix-command flakes | |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org https://nobbz.cachix.org | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nobbz.cachix.org-1:fODxpqE4ni+pFDSuj2ybYZbMUjmxNTjA7rtUNHW61Ok= | |
install_url: https://releases.nixos.org/nix/nix-2.25.0/install | |
- name: Build everything | |
run: nix build .#${{ matrix.package }} | |
build_checks: | |
runs-on: ubuntu-20.04 | |
needs: [generate_matrix] | |
strategy: | |
fail-fast: false | |
max-parallel: 5 | |
matrix: | |
check: ${{fromJson(needs.generate_matrix.outputs.checks)}} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: "${{ secrets.TEST_TOKEN }}" | |
- name: Install nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.TEST_TOKEN }} | |
experimental-features = nix-command flakes | |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org https://nobbz.cachix.org | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nobbz.cachix.org-1:fODxpqE4ni+pFDSuj2ybYZbMUjmxNTjA7rtUNHW61Ok= | |
install_url: https://releases.nixos.org/nix/nix-2.25.0/install | |
- name: Build everything | |
run: nix build .#checks.x86_64-linux.${{ matrix.check }} --no-link | |
check_flake: | |
runs-on: ubuntu-20.04 | |
continue-on-error: true | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: "${{ secrets.TEST_TOKEN }}" | |
- name: Install nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
auto-optimise-store = true | |
access-tokens = github.com=${{ secrets.TEST_TOKEN }} | |
experimental-features = nix-command flakes | |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org https://nobbz.cachix.org | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nobbz.cachix.org-1:fODxpqE4ni+pFDSuj2ybYZbMUjmxNTjA7rtUNHW61Ok= | |
install_url: https://releases.nixos.org/nix/nix-2.25.0/install | |
- name: run the checks | |
run: | | |
nix flake check --keep-going |