Skip to content

Commit

Permalink
ci: test for nix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tomberek committed Dec 5, 2023
1 parent 3dcc438 commit b01747e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,10 @@ jobs:
github-access-token: ${{ secrets.NIX_GIT_TOKEN }}

- name: "Build Example"
env:
# XXX: This is needed until we are in this limbo state and our "new" ui is
# not ready yet
FLOX_BASH_PASSTHRU: true
run: |
cd example
flox build --no-write-lock-file
export NIX_CONFIG="experimental-features = nix-command flakes"
nix build --no-write-lock-file
test-all-action:
name: "All - Github Action Test"
Expand Down Expand Up @@ -138,7 +135,7 @@ jobs:
nix build -L --impure --expr '(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo-'"$RAND"'" {} "uname -mo > $out")'
nix build -L --impure --expr '(with import <nixpkgs> { system = "aarch64-darwin"; }; runCommand "foo-'"$RAND"'" {} "uname -mo > $out")'
cd example
flox build --no-write-lock-file
nix build --no-write-lock-file
test-nix-action:
name: "All - test integration with Nix"
Expand Down Expand Up @@ -192,4 +189,4 @@ jobs:
nix build -L --impure --expr '(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo-'"$RAND"'" {} "uname -mo > $out")'
nix build -L --impure --expr '(with import <nixpkgs> { system = "aarch64-darwin"; }; runCommand "foo-'"$RAND"'" {} "uname -mo > $out")'
cd example
flox build --no-write-lock-file
nix build --no-write-lock-file

0 comments on commit b01747e

Please sign in to comment.