Move around checkout action

This commit is contained in:
Jonathan Kelley 2024-01-08 15:57:26 -08:00
parent 8bb9bccca5
commit f4d9596a06
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -43,12 +43,12 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
- uses: dtolnay/rust-toolchain@stable
- uses: mozilla-actions/sccache-action@v0.0.3
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v4
- run: cargo check --all --examples --tests
test:
@ -56,6 +56,7 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
- uses: dtolnay/rust-toolchain@stable
@ -64,7 +65,6 @@ jobs:
- uses: davidB/rust-cargo-make@v1
- uses: browser-actions/setup-firefox@latest
- uses: jetli/wasm-pack-action@v0.4.0
- uses: actions/checkout@v4
- run: cargo make tests
fmt:
@ -72,12 +72,12 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/setup-nasm@v1
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: mozilla-actions/sccache-action@v0.0.3
- uses: actions/checkout@v4
- run: cargo fmt --all -- --check
clippy:
@ -85,6 +85,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev
- uses: ilammy/setup-nasm@v1
@ -92,7 +93,6 @@ jobs:
with:
components: rustfmt, clippy
- uses: mozilla-actions/sccache-action@v0.0.3
- uses: actions/checkout@v4
- run: cargo clippy --workspace --examples --tests -- -D warnings
miri:
@ -135,6 +135,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Do our best to cache the toolchain and node install steps
- uses: actions/checkout@v4
- uses: ilammy/setup-nasm@v1
- uses: actions/setup-node@v4
with:
@ -146,7 +147,6 @@ jobs:
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown
- uses: mozilla-actions/sccache-action@v0.0.3
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
@ -221,6 +221,7 @@ jobs:
}
steps:
- uses: actions/checkout@v4
- uses: ilammy/setup-nasm@v1
- name: install stable
uses: dtolnay/rust-toolchain@master
@ -237,9 +238,6 @@ jobs:
with:
workspaces: core -> ../target
save-if: ${{ matrix.features.key == 'all' }}
- uses: actions/checkout@v4
- name: test
run: |
${{ env.RUST_CARGO_COMMAND }} ${{ matrix.platform.command }} ${{ matrix.platform.args }} --target ${{ matrix.platform.target }}