1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

clippy ci

This commit is contained in:
Robin Appelman 2023-06-03 18:32:06 +02:00
commit 97fbb100a2
2 changed files with 16 additions and 3 deletions

View file

@ -12,7 +12,6 @@ permissions:
jobs: jobs:
check: check:
name: Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -24,8 +23,20 @@ jobs:
authToken: '${{ secrets.ATTIC_TOKEN }}' authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#check - run: nix build .#check
clippy:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#clippy
build: build:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: check needs: check
strategy: strategy:
@ -49,7 +60,6 @@ jobs:
path: result/bin/parse_demo path: result/bin/parse_demo
test: test:
name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: check needs: check
steps: steps:

View file

@ -46,6 +46,9 @@
check = hostNaersk.buildPackage (nearskOpt // { check = hostNaersk.buildPackage (nearskOpt // {
checkOnly = true; checkOnly = true;
}); });
clippy = hostNaersk.buildPackage (nearskOpt // {
clippyOnly = true;
});
test = hostNaersk.buildPackage (nearskOpt // { test = hostNaersk.buildPackage (nearskOpt // {
release = false; release = false;
testOnly = true; testOnly = true;