fix: actually install the right toolchain this time #10
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
name: Rust | |
on: | |
[push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- id: init | |
run: | | |
rustup toolchain install stable --profile minimal | |
rustup target add x86_64-unknown-linux-musl | |
echo "##[set-output name=sha7;]$(echo ${GITHUB_SHA:0:7})" | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --verbose --release --target x86_64-unknown-linux-musl | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: server-wrapper-${{ steps.init.outputs.sha7 }} | |
path: target/release/server-wrapper | |