ci: don't use nix-fast-build #510

Merged
jalil merged 1 commit from push-pvxwlzozlkwo into main 2025-05-27 13:52:06 +02:00
Showing only changes of commit 22efbecba6 - Show all commits

View file

@ -1,28 +1,65 @@
on: on:
push: push:
jobs: jobs:
check: check-fmt:
runs-on: nixos runs-on: nixos
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: nix --version - run: nix --version
- name: Run checks - name: Run treefmt
run: | run: |
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \ nix build --print-build-logs ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem).treefmt"
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)" build-package:
build-packages:
runs-on: nixos runs-on: nixos
needs: check needs: check-fmt
strategy:
matrix:
package:
- audiomenu
- docs
- docs-home-markdown
- docs-nixos-markdown
- docs-nvim-markdown
- jpassmenu
- nvim
- nvim-headless
- nvim-no-lsps
- nvim-no-ts
- nvim-small
- search
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version - run: nix --version
- name: Build target - name: Build target
env:
PACKAGE: ${{ matrix.package }}
run: | run: |
nix-fast-build --max-jobs 1 --no-nom --skip-cached --no-link \ # shellcheck disable=SC2016
--flake ".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)" nix build --print-build-logs ".#$PACKAGE"
check-nvim:
runs-on: nixos
needs: build-package
strategy:
matrix:
nvim:
- nvim
- nvim-headless
- nvim-no-lsps
- nvim-no-ts
- nvim-small
steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version
- name: Build target
env:
NVIM: ${{ matrix.nvim }}
run: |
nix build --print-build-logs ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem).$NVIM"
build-vm: build-vm:
runs-on: nixos runs-on: nixos
needs: build-packages needs:
- build-package
- check-nvim
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- run: nix --version - run: nix --version
@ -32,7 +69,6 @@ jobs:
report-size: report-size:
runs-on: nixos runs-on: nixos
needs: needs:
- build-packages
- build-vm - build-vm
steps: steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4 - uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4