11name : Test
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref_name }}
10+ cancel-in-progress : true
11+
12+ env :
13+ CARGO_TERM_COLOR : always
414
515jobs :
616 build-test :
7- name : Build + Test
17+ name : Build & Test
18+
19+ runs-on : ubuntu-latest
820
921 strategy :
1022 fail-fast : false
2133 - --features safe,zeroize
2234 - --features safe,zeroize-on-drop
2335 include :
36+ - rust : 1.57.0
37+ msrv : true
2438 - rust : nightly
2539 features : --features nightly
2640 - rust : nightly
@@ -32,17 +46,15 @@ jobs:
3246 - rust : nightly
3347 features : --all-features
3448
35- runs-on : ubuntu-latest
36-
3749 steps :
38- - name : Update Rust
50+ - name : Checkout
51+ uses : actions/checkout@v4
52+ - name : Install Rust
3953 run : |
4054 rustup toolchain install ${{ matrix.rust }} --profile minimal --allow-downgrade
4155 rustup default ${{ matrix.rust }}
42- - name : Checkout
43- uses : actions/checkout@v4
4456 - name : Pin `zeroize` for MSRV
45- if : matrix.rust == '1.57.0'
57+ if : matrix.msrv
4658 run :
4759 cargo update -p zeroize --precise 1.6.0
4860 - name : Build
5870 no-std-build :
5971 name : no_std Build
6072
73+ runs-on : ubuntu-latest
74+
6175 strategy :
6276 fail-fast : false
6377 matrix :
7387 - --features safe,zeroize
7488 - --features safe,zeroize-on-drop
7589 include :
90+ - rust : 1.57.0
91+ msrv : true
7692 - rust : nightly
7793 features : --features nightly
7894 - rust : nightly
@@ -84,17 +100,15 @@ jobs:
84100 - rust : nightly
85101 features : --all-features
86102
87- runs-on : ubuntu-latest
88-
89103 steps :
90- - name : Update Rust
104+ - name : Checkout
105+ uses : actions/checkout@v4
106+ - name : Install Rust
91107 run : |
92108 rustup toolchain install ${{ matrix.rust }} --target thumbv6m-none-eabi --profile minimal --allow-downgrade
93109 rustup default ${{ matrix.rust }}
94- - name : Checkout
95- uses : actions/checkout@v4
96110 - name : Pin `zeroize` for MSRV
97- if : matrix.rust == '1.57.0'
111+ if : matrix.msrv
98112 run :
99113 cargo update -p zeroize --precise 1.6.0
100114 - name : Build
@@ -104,6 +118,8 @@ jobs:
104118 minimal-versions :
105119 name : Minimal Versions
106120
121+ runs-on : ubuntu-latest
122+
107123 strategy :
108124 fail-fast : false
109125 matrix :
@@ -113,18 +129,16 @@ jobs:
113129 - version : stable
114130 features : safe,zeroize-on-drop
115131
116- runs-on : ubuntu-latest
117-
118132 steps :
119- - name : Update Rust
133+ - name : Checkout
134+ uses : actions/checkout@v4
135+ - name : Install Rust
120136 run : |
121137 rustup toolchain install ${{ matrix.rust.version }} --profile minimal --allow-downgrade
122138 rustup default ${{ matrix.rust.version }}
123139 - name : Install nightly Rust
124140 run :
125141 rustup toolchain install nightly --profile minimal --allow-downgrade
126- - name : Checkout
127- uses : actions/checkout@v4
128142 - name : Build
129143 working-directory : test-crates/minimal-versions
130144 run : |
0 commit comments