0.9.7 #3
Workflow file for this run
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: build | |
on: | |
push: | |
tags: ['*.*.*'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install minimal stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install gcc-mingw-w64-x86-64 gcc-mingw-w64-i686 | |
rustup target add x86_64-unknown-linux-gnu | |
- name: Build Linux | |
run: | | |
cargo build --release --all-features --target=x86_64-unknown-linux-gnu | |
- name: Publish cargo package | |
env: | |
CARGO_ACCESS_TOKEN: ${{ secrets.CARGO_ACCESS_TOKEN }} | |
run: | | |
cargo login "$CARGO_ACCESS_TOKEN" | |
cargo publish |