aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitea
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-23 18:33:42 +0900
committerOphestra <cat@gensokyo.uk>2025-02-23 18:34:42 +0900
commite1a3549ea0ed7bfaed77f59e04bab70d7049750e (patch)
tree7b62e17d17185b0964ab31c631bcc21d17f9e16f /.gitea
parent8bf162820b291cc3889fd05f4ba7cd4fcbc1d15d (diff)
workflows: separate nixos tests from flake check
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/test.yml43
1 files changed, 35 insertions, 8 deletions
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
index dde0aa8b..c4e8d15a 100644
--- a/.gitea/workflows/test.yml
+++ b/.gitea/workflows/test.yml
@@ -5,26 +5,53 @@ on:
- pull_request
jobs:
- test:
- name: Run NixOS test
+ fortify:
+ name: Fortify
runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v4
- - name: Run fortify tests
- run: nix build --out-link "result-fortify" --print-out-paths --print-build-logs .#checks.x86_64-linux.fortify
-
- - name: Run flake checks
- run: nix --print-build-logs --experimental-features 'nix-command flakes' flake check
+ - name: Run NixOS test
+ run: nix build --out-link "result" --print-out-paths --print-build-logs .#checks.x86_64-linux.fortify
- name: Upload test output
uses: actions/upload-artifact@v3
with:
name: "fortify-vm-output"
- path: result-fortify/*
+ path: result/*
+ retention-days: 1
+
+ race:
+ name: Data race detector
+ runs-on: nix
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Run NixOS test
+ run: nix build --out-link "result" --print-out-paths --print-build-logs .#checks.x86_64-linux.race
+
+ - name: Upload test output
+ uses: actions/upload-artifact@v3
+ with:
+ name: "fortify-race-vm-output"
+ path: result/*
retention-days: 1
+ check:
+ name: Flake checks
+ needs:
+ - fortify
+ - race
+ runs-on: nix
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Run checks
+ run: nix --print-build-logs --experimental-features 'nix-command flakes' flake check
+
dist:
name: Create distribution
runs-on: nix