Update Actions workflows to use new CICD Docker image
This commit is contained in:
parent
414c1f0e20
commit
4105d0cedb
@ -3,22 +3,10 @@ on: push
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: libretunes-cicd
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Rust toolchain
|
|
||||||
id: setup-toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
|
|
||||||
- name: Cache
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
prefix-key: ${{ steps.setup-toolchain.outputs.cachekey }}
|
|
||||||
- name: Install cargo-leptos
|
|
||||||
run: cargo install cargo-leptos
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-D warnings"
|
RUSTFLAGS: "-D warnings"
|
||||||
@ -58,58 +46,26 @@ jobs:
|
|||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: libretunes-cicd
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Rust toolchain
|
|
||||||
id: setup-toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
|
|
||||||
- name: Cache
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
prefix-key: ${{ steps.setup-toolchain.outputs.cachekey }}
|
|
||||||
- name: Test project
|
- name: Test project
|
||||||
run: cargo test --all-targets --all-features
|
run: cargo test --all-targets --all-features
|
||||||
|
|
||||||
leptos-test:
|
leptos-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: libretunes-cicd
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Rust toolchain
|
|
||||||
id: setup-toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
|
|
||||||
- name: Cache
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
prefix-key: ${{ steps.setup-toolchain.outputs.cachekey }}
|
|
||||||
- name: Install cargo-leptos
|
|
||||||
run: cargo install cargo-leptos
|
|
||||||
- name: Run Leptos tests
|
- name: Run Leptos tests
|
||||||
run: cargo-leptos test
|
run: cargo-leptos test
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: libretunes-cicd
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Rust toolchain
|
|
||||||
id: setup-toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
|
|
||||||
- name: Cache
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
prefix-key: ${{ steps.setup-toolchain.outputs.cachekey }}
|
|
||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
run: cargo doc --no-deps
|
run: cargo doc --no-deps
|
||||||
- name: Upload docs
|
- name: Upload docs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user