summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-29 06:38:42 -0500
committerseth <[email protected]>2023-12-29 06:51:49 -0500
commit660c2b2c9916d52d662d0b03e651818f7cf1eb3c (patch)
tree5ad8a6bf6d3cb2694bba470a67d1d958221076a6
parent874a58f74dea0ee6aa775f43f688e8397bc8cfb5 (diff)
ci: use justfile recipies
-rw-r--r--.github/workflows/ci.yaml25
-rw-r--r--.github/workflows/deploy.yaml9
-rw-r--r--.gitignore2
3 files changed, 14 insertions, 22 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index f708fa8..2bea9aa 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -8,6 +8,9 @@ on:
description: "Auth token for cachix"
workflow_dispatch:
+env:
+ JUST_ARGS: --inputs-from . nixpkgs#just --command
+
jobs:
build:
name: Build outputs
@@ -27,20 +30,11 @@ jobs:
- name: Run build
run: |
- args=(
- --inputs-from .
- --override-input nixpkgs nixpkgs
- github:Mic92/nix-fast-build --
- --no-nom
- --skip-cached
- --option accept-flake-config true
- --flake '.#hydraJobs'
- )
-
- nix run "${args[@]}"
+ nix shell ${{ env.JUST_ARGS }} just ci
check:
strategy:
+ fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
@@ -61,11 +55,4 @@ jobs:
- name: Run check
run: |
- args=(
- --print-build-logs
- --show-trace
- --accept-flake-config
- --allow-import-from-derivation
- )
-
- nix flake check "${args[@]}"
+ nix shell ${{ env.JUST_ARGS }} just check
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 84a376e..388f3ac 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -44,7 +44,14 @@ jobs:
- name: Run deploy
run: |
- nix run --inputs-from . nixpkgs#deploy-rs -- -s
+ args=(
+ --inputs-from .
+ nixpkgs#just
+ --command
+ just deploy-all
+ )
+
+ nix shell "${args[@]}"
terranix:
needs: nixos
diff --git a/.gitignore b/.gitignore
index e5b20e9..c546a18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,6 @@
# nix build artifacts
result*
repl-result-out*
-gc-roots/
-eval.json
# dev shell
.pre-commit-config.yaml