Skip to content

Commit 831838c

Browse files
committed
flake,CI: add nix build CI support for pulse
1 parent 924d5ff commit 831838c

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fi
44

55
watch_file flake.nix
66
watch_file flake.lock
7-
if ! use flake . --no-pure-eval
7+
if ! use flake . --no-pure-eval --accept-flake-config
88
then
99
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
1010
fi

.github/workflows/nix.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This workflow tests the Nix build of pulse. We run it only for PRs (not
2+
# on every push) and we use Github hosted runners.
3+
4+
name: Nix Build
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
nix-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: DeterminateSystems/nix-installer-action@main
15+
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
- name: Build
17+
run: nix build -L

flake.nix

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@
133133
};
134134

135135
packages = {
136+
default = config.packages.pulse;
137+
136138
devenv-up = self.devShells.${system}.default.config.procfileScript;
137139
devenv-test = self.devShells.${system}.default.config.test;
138140

0 commit comments

Comments
 (0)