Skip to content

Commit c31428a

Browse files
committed
ci: various CI updates
Mostly updating various "actions" and doing a little tidying.
1 parent 95af74d commit c31428a

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,47 +30,45 @@ jobs:
3030
- win-gnu
3131
include:
3232
- build: pinned
33-
os: ubuntu-18.04
33+
os: ubuntu-latest
3434
rust: 1.41.1
3535
- build: stable
36-
os: ubuntu-18.04
36+
os: ubuntu-latest
3737
rust: stable
3838
- build: stable-32
39-
os: ubuntu-18.04
39+
os: ubuntu-latest
4040
rust: stable
4141
target: i686-unknown-linux-gnu
4242
- build: stable-mips
43-
os: ubuntu-18.04
43+
os: ubuntu-latest
4444
rust: stable
4545
target: mips64-unknown-linux-gnuabi64
4646
- build: beta
47-
os: ubuntu-18.04
47+
os: ubuntu-latest
4848
rust: beta
4949
- build: nightly
50-
os: ubuntu-18.04
50+
os: ubuntu-latest
5151
rust: nightly
5252
- build: macos
5353
os: macos-latest
5454
rust: stable
5555
- build: win-msvc
56-
os: windows-2019
56+
os: windows-latest
5757
rust: stable
5858
- build: win-gnu
59-
os: windows-2019
59+
os: windows-latest
6060
rust: stable-x86_64-gnu
6161
steps:
6262

6363
- name: Checkout repository
64-
uses: actions/checkout@v1
65-
with:
66-
fetch-depth: 1
64+
uses: actions/checkout@v3
6765

6866
- name: Install Rust
6967
uses: actions-rs/toolchain@v1
7068
with:
69+
override: true
7170
toolchain: ${{ matrix.rust }}
7271
profile: minimal
73-
override: true
7472

7573
- name: Install and configure Cross
7674
if: matrix.target != ''
@@ -89,7 +87,7 @@ jobs:
8987
echo "target flag is: ${{ env.TARGET }}"
9088
9189
- name: Show CPU info for debugging
92-
if: matrix.os == 'ubuntu-18.04'
90+
if: matrix.os == 'ubuntu-latest'
9391
run: lscpu
9492

9593
- name: Basic build
@@ -163,18 +161,14 @@ jobs:
163161
runs-on: ubuntu-18.04
164162
steps:
165163
- name: Checkout repository
166-
uses: actions/checkout@v1
167-
with:
168-
fetch-depth: 1
164+
uses: actions/checkout@v3
169165
- name: Install Rust
170166
uses: actions-rs/toolchain@v1
171167
with:
168+
override: true
172169
toolchain: stable
173170
profile: minimal
174-
override: true
175171
components: rustfmt
176-
- name: Install rustfmt
177-
run: rustup component add rustfmt
178172
- name: Check formatting
179173
run: |
180174
cargo fmt --all -- --check

0 commit comments

Comments
 (0)