@@ -36,13 +36,20 @@ jobs:
36
36
]
37
37
38
38
steps :
39
+ - uses : actions/checkout@v3
40
+
41
+ # `rustup show` installs from rust-toolchain.toml
42
+ - name : Setup rust toolchain
43
+ run : rustup show
44
+
45
+ - name : Setup rust cache
46
+ uses : Swatinem/rust-cache@v2
47
+
39
48
- name : Install packages
40
49
run : |
41
50
sudo apt-get update
42
51
sudo apt-get install qemu qemu-user-static
43
52
44
- - uses : actions/checkout@v3
45
-
46
53
- name : Download GCC artifact
47
54
uses : dawidd6/action-download-artifact@v2
48
55
with :
72
79
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
73
80
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV
74
81
75
- - name : Cache cargo installed crates
76
- uses : actions/cache@v3
77
- with :
78
- path : ~/.cargo/bin
79
- key : cargo-installed-crates2-ubuntu-latest
80
-
81
- # - name: Cache cargo registry
82
- # uses: actions/cache@v3
83
- # with:
84
- # path: ~/.cargo/registry
85
- # key: ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }}
86
-
87
- # - name: Cache cargo index
88
- # uses: actions/cache@v3
89
- # with:
90
- # path: ~/.cargo/git
91
- # key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
92
-
93
- - name : Cache cargo target dir
94
- uses : actions/cache@v3
95
- with :
96
- path : target
97
- key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
98
-
99
82
# - name: Cache rust repository
100
83
# # We only clone the rust repository for rustc tests
101
84
# if: ${{ contains(matrix.commands, 'rustc') }}
@@ -126,13 +109,6 @@ jobs:
126
109
git config --global user.name "User"
127
110
./y.sh prepare --cross
128
111
129
- # Compile is a separate step, as the actions-rs/cargo action supports error annotations
130
- - name : Compile
131
- uses :
actions-rs/[email protected]
132
- with :
133
- command : build
134
- args : --release
135
-
136
112
- name : Add more failing tests because the sysroot is not compiled with LTO
137
113
run : cat failing-non-lto-tests.txt >> failing-ui-tests.txt
138
114
0 commit comments