@@ -13,54 +13,37 @@ jobs:
13
13
rust : [stable, beta, nightly]
14
14
os : [ubuntu-latest, macos-14, windows-latest]
15
15
steps :
16
- - uses : actions/checkout@master
17
- - name : Install Rust (rustup)
18
- run : |
19
- rustup toolchain install ${{ matrix.rust }} --no-self-update --profile minimal
20
- rustup default ${{ matrix.rust }}
21
- shell : bash
22
-
23
- - uses : Swatinem/rust-cache@v2
16
+ - uses : actions/checkout@master
17
+ - name : Install Rust (rustup)
18
+ run : |
19
+ rustup toolchain install ${{ matrix.rust }} --no-self-update --profile minimal
20
+ rustup default ${{ matrix.rust }}
21
+ shell : bash
24
22
25
- - run : cargo test --locked
23
+ - uses : Swatinem/rust-cache@v2
26
24
27
- - name : Cache make compiled
28
- if : ${{ !startsWith(matrix.os, 'windows') }}
29
- id : cache-make
30
- uses : actions/cache@v4
31
- with :
32
- path : /usr/local/bin/make
33
- key : ${{ runner.os }}-make-4.4.1
25
+ - run : cargo test --locked
34
26
35
- # Compile it from source (temporarily)
36
- - name : Make GNU Make from source
37
- if : ${{ !startsWith(matrix.os, 'windows') && steps.cache-make.outputs.cache-hit != 'true' }}
38
- env :
39
- VERSION : " 4.4.1"
40
- shell : bash
41
- run : |
42
- curl "https://ftp.gnu.org/gnu/make/make-${VERSION}.tar.gz" | tar xz
43
- pushd "make-${VERSION}"
44
- ./configure
45
- make -j 4
46
- popd
47
- cp -p "make-${VERSION}/make" /usr/local/bin
27
+ - name : Compile make 4.4.1
28
+ uses : ./.github/actions/compile-make
29
+ with :
30
+ version : 4.4.1
48
31
49
- - name : Test against GNU Make from source
50
- if : ${{ !startsWith(matrix.os, 'windows') }}
51
- shell : bash
52
- run : cargo test --locked
53
- env :
54
- MAKE : /usr/local/bin/make
32
+ - name : Test against GNU Make 4.4.1
33
+ if : ${{ !startsWith(matrix.os, 'windows') }}
34
+ shell : bash
35
+ run : cargo test --locked
36
+ env :
37
+ MAKE : /usr/local/bin/make-4.4.1
55
38
56
39
rustfmt :
57
40
name : Rustfmt
58
41
runs-on : ubuntu-latest
59
42
steps :
60
- - uses : actions/checkout@master
61
- - name : Install Rust
62
- run : rustup update stable && rustup default stable && rustup component add rustfmt
63
- - run : cargo fmt -- --check
43
+ - uses : actions/checkout@master
44
+ - name : Install Rust
45
+ run : rustup update stable && rustup default stable && rustup component add rustfmt
46
+ - run : cargo fmt -- --check
64
47
65
48
publish_docs :
66
49
name : Publish Documentation
@@ -86,12 +69,12 @@ jobs:
86
69
matrix :
87
70
os : [ubuntu-latest, macos-14, windows-latest]
88
71
steps :
89
- - uses : actions/checkout@master
90
- - name : Install Rust (rustup)
91
- run : rustup toolchain install nightly --no-self-update --profile minimal
92
- shell : bash
72
+ - uses : actions/checkout@master
73
+ - name : Install Rust (rustup)
74
+ run : rustup toolchain install nightly --no-self-update --profile minimal
75
+ shell : bash
93
76
94
- - uses : taiki-e/install-action@cargo-hack
95
- - uses : Swatinem/rust-cache@v2
77
+ - uses : taiki-e/install-action@cargo-hack
78
+ - uses : Swatinem/rust-cache@v2
96
79
97
- - run : cargo hack check --lib --rust-version --ignore-private --locked
80
+ - run : cargo hack check --lib --rust-version --ignore-private --locked
0 commit comments