ci: use nix-fast-build to speedup checks
This should provide a nice speedup over calling nix build sequentially
This commit is contained in:
parent
981fa9ae78
commit
78327cd972
1 changed files with 14 additions and 22 deletions
|
@ -3,22 +3,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
check:
|
|
||||||
- nvimDev
|
|
||||||
- nvimHeadless
|
|
||||||
- nvimNoBundledBins
|
|
||||||
- nvimNoLsp
|
|
||||||
- nvimNoTSGrammars
|
|
||||||
- treefmt
|
|
||||||
steps:
|
steps:
|
||||||
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
|
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: |
|
run: |
|
||||||
nix --version
|
nix --version
|
||||||
# shellcheck disable=SC2016
|
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
|
||||||
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
|
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
||||||
check-renovaterc:
|
check-renovaterc:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
steps:
|
steps:
|
||||||
|
@ -27,24 +18,25 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nix --version
|
nix --version
|
||||||
nix shell nixpkgs#renovate --command renovate-config-validator
|
nix shell nixpkgs#renovate --command renovate-config-validator
|
||||||
build:
|
build-packages:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: check
|
needs: check
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- audiomenu
|
|
||||||
- docs
|
|
||||||
- jpassmenu
|
|
||||||
- nixosConfigurations.vm.config.system.build.toplevel
|
|
||||||
- nvim
|
|
||||||
steps:
|
steps:
|
||||||
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
|
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
|
||||||
- name: Build target
|
- name: Build target
|
||||||
run: |
|
run: |
|
||||||
nix --version
|
nix --version
|
||||||
# shellcheck disable=SC2016
|
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
|
||||||
nix build --print-build-logs '.#${{ matrix.target }}'
|
--flake ".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
||||||
|
build-vm:
|
||||||
|
runs-on: nixos
|
||||||
|
needs: build-packages
|
||||||
|
steps:
|
||||||
|
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
|
||||||
|
- name: Build VM configuration
|
||||||
|
run: |
|
||||||
|
nix --version
|
||||||
|
nix build --print-build-logs '.#nixosConfigurations.vm.config.system.build.toplevel'
|
||||||
report-size:
|
report-size:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: build
|
needs: build
|
||||||
|
|
Loading…
Add table
Reference in a new issue