-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Build wasm on explicit rust version (#975)
* ci: Build wasm on explicit rust version * Upgrade to dtolnay/rust-toolchain in CI * Try not installing a toolchain at all Unfortunately dtolnay/rust-toolchain#12
- Loading branch information
Showing
6 changed files
with
13 additions
and
57 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 |
---|---|---|
|
@@ -2,34 +2,21 @@ name: Test Rust | |
description: Runs cargo test & cargo lint for a given platform & target. | ||
|
||
inputs: | ||
target: | ||
description: "Target triple, like `wasm32-unknown-unknown" | ||
required: false | ||
target_option: | ||
description: "--target={target}" | ||
description: "Target triple with prefix, like `--target=wasm32-unknown-unknown`" | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 🔗 Setup toolchain | ||
# If we don't get a value, then skip; we're using the default value. | ||
if: ${{ inputs.target }} | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
target: ${{ inputs.target }} | ||
toolchain: stable | ||
override: true | ||
default: true | ||
- name: 💰 Cache | ||
uses: Swatinem/rust-cache@v1 | ||
with: | ||
# Without inputs.target, it seems to select linux x64 in the wasm32 | ||
# tests, though in the docs it says it uses the target as the key? | ||
key: ${{ inputs.target }} | ||
key: ${{ inputs.target_option }} | ||
- uses: jetli/[email protected] | ||
if: inputs.target == 'wasm32-unknown-unknown' | ||
if: inputs.target_option == '--target=wasm32-unknown-unknown' | ||
- name: 📎 Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
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
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
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