@@ -11,47 +11,59 @@ permissions: read-all
11
11
12
12
jobs :
13
13
nix-bazel :
14
- runs-on : ubuntu-22.04
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ os : [ubuntu-22.04] # TODO(aaronmondal): Enable macos-13.
18
+ name : Bazel Dev / ${{ matrix.os }}
19
+ runs-on : ${{ matrix.os }}
15
20
steps :
21
+
16
22
- name : Checkout
17
-
18
- with :
19
- fetch-depth : 0
23
+ uses : >- # v4.1.1
24
+ actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
25
+
20
26
- name : Install Nix
21
- uses : cachix/install-nix-action@v22
22
- with :
23
- nix_path : nixpkgs=channel:nixos-unstable
24
- - name : Mount Nix cache
25
-
26
- with :
27
- key : ${{ runner.os }}-nix
28
- path : ~/nix
27
+ uses : >- # v7
28
+ DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
29
+
30
+ - name : Cache Nix derivations
31
+ uses : >- # Custom commit, last pinned at 2023-11-17.
32
+ DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
33
+
29
34
- name : Mount bazel cache
30
- uses : actions/cache@v3
35
+ uses : >- # v3.3.2
36
+ actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
31
37
with :
32
38
path : " ~/.cache/bazel"
33
39
key : ${{ runner.os }}-bazel-nix
40
+
34
41
- name : Invoke Bazel build in Nix shell
35
42
run : >
36
- nix --store ~/nix develop --impure --command
37
- bash -c "bazel test ..."
43
+ nix develop --impure --command
44
+ bash -c "bazel test ... --verbose_failures"
45
+
38
46
nix-cargo :
39
- runs-on : ubuntu-22.04
47
+ strategy :
48
+ fail-fast : false
49
+ matrix :
50
+ os : [ubuntu-22.04, macos-13]
51
+ name : Cargo Dev / ${{ matrix.os }}
52
+ runs-on : ${{ matrix.os }}
40
53
steps :
41
54
- name : Checkout
42
-
43
- with :
44
- fetch-depth : 0
55
+ uses : >- # v4.1.1
56
+ actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
57
+
45
58
- name : Install Nix
46
- uses : cachix/install-nix-action@v22
47
- with :
48
- nix_path : nixpkgs=channel:nixos-unstable
49
- - name : Mount Nix cache
50
-
51
- with :
52
- key : ${{ runner.os }}-nix
53
- path : ~/nix
59
+ uses : >- # v7
60
+ DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
61
+
62
+ - name : Cache Nix derivations
63
+ uses : >- # Custom commit, last pinned at 2023-11-17.
64
+ DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
65
+
54
66
- name : Invoke Cargo build in Nix shell
55
67
run : >
56
- nix --store ~/nix develop --impure --command
68
+ nix develop --impure --command
57
69
bash -c "cargo test --all"
0 commit comments