11name : CI
22
33on :
4- pull_request :
5- types : [opened, synchronize, reopened]
6- push :
7- branches : [master]
4+ pull_request : {}
5+ push : { branches: [master] }
6+
7+ permissions : { contents: read }
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
812
913jobs :
1014 build_and_test_linux :
1418 target :
1519 - { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
1620 version :
17- - 1.59 # MSRV
21+ - ' 1.60 ' # MSRV
1822 - stable
1923
2024 name : ${{ matrix.target.name }} / ${{ matrix.version }}
@@ -35,18 +39,19 @@ jobs:
3539 steps :
3640 - uses : actions/checkout@v3
3741
38- - name : Install ${{ matrix.version }}
39- run : |
40- rustup install ${{ matrix.version }}-${{ matrix.target.triple }}
41- rustup override set ${{ matrix.version }}-${{ matrix.target.triple }}
42+ - name : Install Rust ( ${{ matrix.version }})
43+ uses : actions-rust-lang/setup-rust-toolchain@v1
44+ with :
45+ toolchain : ${{ matrix.version }}
4246
4347 - name : Install cargo-hack
44- uses : taiki-e/install-action@cargo-hack
48+ uses : taiki-e/cache-cargo-install-action@v1
49+ with : { tool: cargo-hack }
4550
46- - name : Generate Cargo.lock
47- run : cargo generate-lockfile
48- - name : Cache Dependencies
49- 51+ - name : workaround MSRV issues
52+ if : matrix.version != 'stable'
53+ run : |
54+ cargo update -p=time:0.3.20 --precise=0.3.16
5055
5156 - name : check minimal
5257 run : cargo ci-min
7883 triple : x86_64-pc-windows-msvc,
7984 }
8085 version :
81- - 1.59 # MSRV
86+ - ' 1.60 ' # MSRV
8287 - stable
8388
8489 name : ${{ matrix.target.name }} / ${{ matrix.version }}
@@ -87,18 +92,19 @@ jobs:
8792 steps :
8893 - uses : actions/checkout@v3
8994
90- - name : Install ${{ matrix.version }}
91- run : |
92- rustup install ${{ matrix.version }}-${{ matrix.target.triple }}
93- rustup override set ${{ matrix.version }}-${{ matrix.target.triple }}
95+ - name : Install Rust ( ${{ matrix.version }})
96+ uses : actions-rust-lang/setup-rust-toolchain@v1
97+ with :
98+ toolchain : ${{ matrix.version }}
9499
95100 - name : Install cargo-hack
96- uses : taiki-e/install-action@cargo-hack
101+ uses : taiki-e/cache-cargo-install-action@v1
102+ with : { tool: cargo-hack }
97103
98- - name : Generate Cargo.lock
99- run : cargo generate-lockfile
100- - name : Cache Dependencies
101- 104+ - name : workaround MSRV issues
105+ if : matrix.version != 'stable'
106+ run : |
107+ cargo update -p=time:0.3.20 --precise=0.3.16
102108
103109 - name : check minimal
104110 run : cargo ci-min
@@ -125,14 +131,8 @@ jobs:
125131 - uses : actions/checkout@v3
126132
127133 - name : Install Rust (nightly)
128- run : |
129- rustup install nightly
130- rustup override set nightly
131-
132- - name : Generate Cargo.lock
133- run : cargo generate-lockfile
134- - name : Cache Dependencies
135- 134+ uses : actions-rust-lang/setup-rust-toolchain@v1
135+ with : { toolchain: nightly }
136136
137137 - name : doc tests
138138 timeout-minutes : 40
0 commit comments