File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,34 @@ jobs:
17
17
18
18
- run : cargo test
19
19
20
+ - name : Cache make compiled
21
+ if : ${{ !startsWith(matrix.os, 'windows') }}
22
+ id : cache-make
23
+ uses : actions/cache@v4
24
+ with :
25
+ path : /usr/local/bin/make
26
+ key : ${{ runner.os }}-make-4.4.1
27
+
20
28
# Compile it from source (temporarily)
21
29
- name : Make GNU Make from source
22
- if : ${{ !startsWith(matrix.os, 'windows') }}
30
+ if : ${{ !startsWith(matrix.os, 'windows') }} && steps.cache-make.outputs.cache-hit != 'true'
23
31
env :
24
32
VERSION : " 4.4.1"
25
33
shell : bash
26
34
run : |
27
- wget -q "https://ftp.gnu.org/gnu/make/make-${VERSION}.tar.gz"
28
- tar zxf "make-${VERSION}.tar.gz"
35
+ curl "https://ftp.gnu.org/gnu/make/make-${VERSION}.tar.gz" | tar xz
29
36
pushd "make-${VERSION}"
30
37
./configure
31
- make
38
+ make -j 4
32
39
popd
33
- cp -rp "make-${VERSION}/make" .
40
+ cp -p "make-${VERSION}/make" /usr/local/bin
41
+
34
42
- name : Test against GNU Make from source
35
43
if : ${{ !startsWith(matrix.os, 'windows') }}
36
44
shell : bash
37
- run :
38
- MAKE="${PWD}/make" cargo test
45
+ run : cargo test
46
+ env :
47
+ MAKE : /usr/local/bin/make
39
48
40
49
rustfmt :
41
50
name : Rustfmt
You can’t perform that action at this time.
0 commit comments