chore: release #12
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: Add bins to assets | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Add x86_64-pc-windows-gnu target | |
run: rustup target add x86_64-pc-windows-gnu | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Install mingw-w64 | |
run: sudo apt-get install -y mingw-w64 | |
- name: Build x86_64-pc-windows-gnu | |
run: cargo build --target x86_64-pc-windows-gnu --release --verbose | |
- name: Build x86_64-unknown-linux-gnu | |
run: cargo build --target x86_64-unknown-linux-gnu --release --verbose | |
- uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/x86_64-unknown-linux-gnu/release/parser | |
asset_name: parser.bin | |
- uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/x86_64-pc-windows-gnu/release/parser.exe | |
asset_name: parser.exe |