mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Move around checkout action
This commit is contained in:
parent
8bb9bccca5
commit
f4d9596a06
1 changed files with 6 additions and 8 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue