Update GitHub Actions CI (#3150)
The following updates are performed: * update actions/checkout to v3 * replace unmaintained actions-rs/toolchain by dtolnay/rust-toolchain * replace unmaintained actions-rs/cargo by direct invocation of cargo
This commit is contained in:
parent
486cff8ac3
commit
9731cfd9cf
|
|
@ -15,13 +15,11 @@ jobs:
|
||||||
name: Format + check + test
|
name: Format + check + test
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: default
|
|
||||||
toolchain: 1.65.0
|
toolchain: 1.65.0
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Install packages (Linux)
|
- name: Install packages (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
@ -37,10 +35,7 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo fmt --all -- --check
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
- name: Install cargo-cranky
|
- name: Install cargo-cranky
|
||||||
uses: baptiste0928/cargo-install@v1
|
uses: baptiste0928/cargo-install@v1
|
||||||
|
|
@ -48,70 +43,37 @@ jobs:
|
||||||
crate: cargo-cranky
|
crate: cargo-cranky
|
||||||
|
|
||||||
- name: check --all-features
|
- name: check --all-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
|
|
||||||
- name: check egui_extras --all-features
|
- name: check egui_extras --all-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --all-features --all-targets -p egui_extras
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --all-features --all-targets -p egui_extras
|
|
||||||
|
|
||||||
- name: check default features
|
- name: check default features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --all-targets
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --all-targets
|
|
||||||
|
|
||||||
- name: check --no-default-features
|
- name: check --no-default-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --no-default-features --lib --all-targets
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --no-default-features --lib --all-targets
|
|
||||||
|
|
||||||
- name: check epaint --no-default-features
|
- name: check epaint --no-default-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --no-default-features --lib --all-targets -p epaint
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --no-default-features --lib --all-targets -p epaint
|
|
||||||
|
|
||||||
- name: check eframe --no-default-features
|
- name: check eframe --no-default-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --locked --no-default-features --lib --all-targets -p eframe
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --locked --no-default-features --lib --all-targets -p eframe
|
|
||||||
|
|
||||||
- name: Test doc-tests
|
- name: Test doc-tests
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --doc --all-features
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --doc --all-features
|
|
||||||
|
|
||||||
- name: cargo doc --lib
|
- name: cargo doc --lib
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --lib --no-deps --all-features
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --lib --no-deps --all-features
|
|
||||||
|
|
||||||
- name: cargo doc --document-private-items
|
- name: cargo doc --document-private-items
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --document-private-items --no-deps --all-features
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --document-private-items --no-deps --all-features
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --all-features
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --all-features
|
|
||||||
|
|
||||||
- name: Cranky
|
- name: Cranky
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo cranky --all-targets --all-features -- -D warnings
|
||||||
with:
|
|
||||||
command: cranky
|
|
||||||
args: --all-targets --all-features -- -D warnings
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -119,13 +81,11 @@ jobs:
|
||||||
name: Check wasm32 + wasm-bindgen
|
name: Check wasm32 + wasm-bindgen
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: 1.65.0
|
toolchain: 1.65.0
|
||||||
target: wasm32-unknown-unknown
|
targets: wasm32-unknown-unknown
|
||||||
override: true
|
|
||||||
|
|
||||||
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev
|
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev
|
||||||
|
|
||||||
|
|
@ -138,22 +98,13 @@ jobs:
|
||||||
crate: cargo-cranky
|
crate: cargo-cranky
|
||||||
|
|
||||||
- name: Check wasm32 egui_demo_app
|
- name: Check wasm32 egui_demo_app
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: -p egui_demo_app --lib --target wasm32-unknown-unknown
|
|
||||||
|
|
||||||
- name: Check wasm32 egui_demo_app --all-features
|
- name: Check wasm32 egui_demo_app --all-features
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown --all-features
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: -p egui_demo_app --lib --target wasm32-unknown-unknown --all-features
|
|
||||||
|
|
||||||
- name: Check wasm32 eframe
|
- name: Check wasm32 eframe
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check -p eframe --lib --no-default-features --features glow,persistence --target wasm32-unknown-unknown
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: -p eframe --lib --no-default-features --features glow,persistence --target wasm32-unknown-unknown
|
|
||||||
|
|
||||||
- name: wasm-bindgen
|
- name: wasm-bindgen
|
||||||
uses: jetli/wasm-bindgen-action@v0.1.0
|
uses: jetli/wasm-bindgen-action@v0.1.0
|
||||||
|
|
@ -188,7 +139,7 @@ jobs:
|
||||||
name: cargo-deny ${{ matrix.target }}
|
name: cargo-deny ${{ matrix.target }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: EmbarkStudios/cargo-deny-action@v1
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
||||||
with:
|
with:
|
||||||
rust-version: "1.65.0"
|
rust-version: "1.65.0"
|
||||||
|
|
@ -202,14 +153,12 @@ jobs:
|
||||||
name: android
|
name: android
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: 1.65.0
|
toolchain: 1.65.0
|
||||||
target: aarch64-linux-android
|
targets: aarch64-linux-android
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Set up cargo cache
|
- name: Set up cargo cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
@ -223,18 +172,13 @@ jobs:
|
||||||
name: Check Windows
|
name: Check Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: 1.65.0
|
toolchain: 1.65.0
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Set up cargo cache
|
- name: Set up cargo cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --all-targets --all-features
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --all-targets --all-features
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Actions Repository
|
- name: Checkout Actions Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Check spelling of entire workspace
|
- name: Check spelling of entire workspace
|
||||||
uses: crate-ci/typos@master
|
uses: crate-ci/typos@master
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue