Skip to content

chore: Update rust.yml #16

chore: Update rust.yml

chore: Update rust.yml #16

Workflow file for this run

name: Rust
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --release
- name: Deploy
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: .\target\release\MopaqPack-rs.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}