DISCLAIMER: I will not be maintaining this action anymore. Take a look at actions-rs instead.
This action sets up a Rust environment for use in actions by:
- downloading and caching a version of Rust by channel and host and adding to PATH
- optionally downloading and caching a custom target
- optionally downloading and caching commonly used cargo subcommands
- optionally downloading and caching cross for cross-compiling
See action.yml
Basic:
steps:
- uses: actions/checkout@v1
- uses: raftario/setup-rust-action@v1
- run: cargo test
Matrix Testing:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust-channel: [ 'stable', 'nightly' ]
rust-host: [ 'x86_64-unknown-linux-gnu', 'i686-unknown-linux-gnu' ]
name: Rust ${{ matrix.rust-channel }}-${{ matrix.rust-host }} sample
steps:
- uses: actions/checkout@v1
- uses: raftario/setup-rust-action@v1
with:
rust-channel: ${{ matrix.rust-channel }}
rust-host: ${{ matrix.rust-host }}
- name: Setup Rust
- run: cargo test
The scripts and documentation in this project are released under the MIT License