fix(ci): use a matrix for checks #203

Merged
jalil merged 1 commit from improve-ci into main 2024-12-26 22:51:59 +01:00

View file

@ -3,15 +3,25 @@ on:
jobs: jobs:
check: check:
runs-on: nixos runs-on: nixos
needs: build strategy:
matrix:
check:
- nvimDev
- nvimHeadless
- nvimNoBundledBins
- nvimNoLsp
- nvimNoTSGrammars
- treefmt
steps: steps:
- uses: "https://code.forgejo.org/actions/checkout@v4" - uses: "https://git.salame.cl/actions/checkout@v4"
- run: nix --version - name: Run checks
- name: Run Checks run: |
run: nix flake check --keep-going --verbose nix --version
# shellcheck disable=SC2016
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
build: build:
runs-on: nixos runs-on: nixos
if: github.event_name == 'push' needs: check
strategy: strategy:
matrix: matrix:
target: target:
@ -21,10 +31,12 @@ jobs:
- nixosConfigurations.vm.config.system.build.toplevel - nixosConfigurations.vm.config.system.build.toplevel
- nvim - nvim
steps: steps:
- uses: "https://code.forgejo.org/actions/checkout@v4" - uses: "https://git.salame.cl/actions/checkout@v4"
- run: nix --version
- name: Build target - name: Build target
run: nix build --print-build-logs '.#${{ matrix.target }}' run: |
nix --version
# shellcheck disable=SC2016
nix build --print-build-logs '.#${{ matrix.target }}'
report-size: report-size:
runs-on: nixos runs-on: nixos
needs: build needs: build