Commit 0387156 1 parent f3a191b commit 0387156 Copy full SHA for 0387156
File tree 1 file changed +10
-25
lines changed
1 file changed +10
-25
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
if : " contains(github.event.head_commit.message, '[rust]')"
10
10
steps :
11
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
12
12
13
- - name : Setup TypeScript compiler
14
- run : yarn global add typescript@next
15
-
16
- - name : Install build dependencies
17
- run : sudo apt-get install -y -q sassc
18
- env :
19
- DEBIAN_FRONTEND : noninteractive
20
-
21
- - name : Setup Install rust toolchain
22
- uses : actions-rs/toolchain@v1
13
+ - uses : DeterminateSystems/nix-installer-action@main
23
14
with :
24
- toolchain : nightly
25
- override : true
15
+ diagnostic-endpoint : ' '
26
16
27
- - name : cargo build
28
- uses : actions-rs/cargo@v1
17
+ - uses : DeterminateSystems/magic-nix-cache-action@main
29
18
with :
30
- command : build
31
- args : --all-targets
32
- env :
33
- SQLX_OFFLINE : true
19
+ diagnostic-endpoint : ' '
20
+
21
+ - name : cargo build
22
+ run : nix build
34
23
35
24
- name : cargo test
36
- uses : actions-rs/cargo@v1
37
- with :
38
- command : test
39
- env :
40
- SQLX_OFFLINE : true
25
+ run : nix develop --command cargo test
41
26
42
27
check-js :
43
28
name : " check frontend code"
44
29
runs-on : ubuntu-latest
45
30
steps :
46
- - uses : actions/checkout@v3
31
+ - uses : actions/checkout@v4
47
32
48
33
- name : Install dependencies
49
34
run : cd ircj-serve && yarn
You can’t perform that action at this time.
0 commit comments