13
13
jobs :
14
14
build :
15
15
runs-on : ubuntu-22.04
16
-
17
16
steps :
18
- - uses : actions/checkout@v3
19
- - uses : actions-rs/toolchain@v1
17
+ - uses : actions/checkout@v3
18
+ - uses : actions-rs/toolchain@v1
20
19
with :
21
20
profile : minimal
22
21
toolchain : stable
23
22
override : true
24
23
components : clippy
25
24
26
- - name : Download artifact
27
- uses : dawidd6/action-download-artifact@v2
28
- with :
25
+ - name : Download artifact
26
+ uses : dawidd6/action-download-artifact@v2
27
+ with :
29
28
workflow : main.yml
30
29
name : " libgccjit.so"
31
30
path : gcc-build
@@ -34,46 +33,43 @@ jobs:
34
33
event : push
35
34
search_artifacts : true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
36
35
37
- - name : Setup path to libgccjit
38
- run : |
36
+ - name : Setup path to libgccjit
37
+ run : |
39
38
echo $(readlink -f gcc-build) > gcc_path
40
39
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
41
40
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
42
41
43
- - name : Set env
44
- run : |
45
- echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
46
- echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
47
- echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
48
-
49
- - name : Set RUST_COMPILER_RT_ROOT
50
- run : echo "RUST_COMPILER_RT_ROOT="${{ env.workspace }}/llvm/compiler-rt >> $GITHUB_ENV
42
+ - name : Set env
43
+ run : |
44
+ echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
45
+ echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
46
+ echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
51
47
52
- - name : Cache cargo registry
53
- uses : actions/cache@v3
54
- with :
55
- path : ~/.cargo/registry
56
- key : ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }}
48
+ - name : Cache cargo registry
49
+ uses : actions/cache@v3
50
+ with :
51
+ path : ~/.cargo/registry
52
+ key : ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }}
57
53
58
- - name : Cache cargo index
59
- uses : actions/cache@v3
60
- with :
61
- path : ~/.cargo/git
62
- key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
54
+ - name : Cache cargo index
55
+ uses : actions/cache@v3
56
+ with :
57
+ path : ~/.cargo/git
58
+ key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
63
59
64
- - name : Cache cargo target dir
65
- uses : actions/cache@v3
66
- with :
67
- path : target
68
- key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
60
+ - name : Cache cargo target dir
61
+ uses : actions/cache@v3
62
+ with :
63
+ path : target
64
+ key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
69
65
70
- - name : Build
71
- run : |
72
- cargo build
73
- cargo build --features master
74
- cargo build --examples
66
+ - name : Build
67
+ run : |
68
+ cargo build
69
+ cargo build --features master
70
+ cargo build --examples
75
71
76
- - name : clippy
77
- run : |
78
- cargo clippy --all-targets -- -D warnings
79
- cargo clippy --all-targets --features master -- -D warnings
72
+ - name : clippy
73
+ run : |
74
+ cargo clippy --all-targets -- -D warnings
75
+ cargo clippy --all-targets --features master -- -D warnings
0 commit comments