-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
339 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,26 +7,62 @@ on: | |
- main | ||
|
||
jobs: | ||
rustfmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all -- --check | ||
|
||
runefmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo run --bin rune -- fmt --experimental --recursive --verbose --workspace tools scripts | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/[email protected] | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo clippy --workspace --exclude no-std-examples --exclude generate --all-features --all-targets -- -D warnings | ||
|
||
msrv: | ||
runs-on: ubuntu-latest | ||
needs: [rustfmt, runefmt, clippy] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo build --workspace | ||
|
||
test: | ||
no_default_features: | ||
runs-on: ubuntu-latest | ||
needs: [rustfmt, runefmt, clippy] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo build -p rune --no-default-features | ||
- run: cargo build -p rune --no-default-features --features capture-io | ||
- run: cargo test --workspace --exclude no-std-examples --all-targets | ||
- run: cargo test --workspace --exclude no-std-examples --doc | ||
- run: cargo run --bin rune -- check --recursive --experimental scripts | ||
- run: cargo run --bin rune -- test --recursive --experimental scripts | ||
|
||
build_feature: | ||
runs-on: ubuntu-latest | ||
needs: [rustfmt, runefmt, clippy] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
feature: [capture-io, doc, cli, workspace] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo build -p rune --no-default-features --features ${{matrix.feature}} | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
|
@@ -41,6 +77,7 @@ jobs: | |
|
||
wasm: | ||
runs-on: ubuntu-latest | ||
needs: [rustfmt, runefmt, clippy] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
@@ -49,28 +86,15 @@ jobs: | |
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo build -p rune-wasm --target wasm32-unknown-unknown | ||
|
||
rustfmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all -- --check | ||
|
||
runefmt: | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: [no_default_features, build_feature, docs, msrv, wasm] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo run --bin rune -- fmt --experimental --recursive --verbose --workspace tools scripts | ||
|
||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/[email protected] | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo clippy --workspace --exclude no-std-examples --exclude generate --all-features --all-targets -- -D warnings | ||
- run: cargo build -p rune --no-default-features | ||
- run: cargo test --workspace --exclude no-std-examples --all-targets | ||
- run: cargo test --workspace --exclude no-std-examples --doc | ||
- run: cargo run --bin rune -- check --recursive --experimental scripts | ||
- run: cargo run --bin rune -- test --recursive --experimental scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.