cfe784a387
Selection of new rustup profile minimal introduced with rustup version 1.20.0 |
||
---|---|---|
.github | ||
lib | ||
node_modules | ||
src | ||
.gitignore | ||
action.yml | ||
jest.config.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
setup-rust-action
Sets up a specific Rust toolchain for use in your GitHub Actions workflows.
Usage
Provide a rust-version
with the desired toolchain version to install.
You can combine it with matrix
to test different Rust toolchains in different
platforms!
name: Test Rust project
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run tests
run: cargo test --verbose
For more details, check out action.yml
.
Contributing / Feedback
Contributions and feedback are welcome! Feel free to open any issues or pull requests.