Skip to content

Rust

Rust #10

Workflow file for this run

name: Rust
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
build-ubuntu:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose --release
- name: Upload ununtu release binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/release/shiva
asset_name: shiva
asset_content_type: application/octet-stream
build-windows:
permissions:
contents: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose --release
- name: Upload windows release binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/release/shiva.exe
asset_name: shiva.exe
asset_content_type: application/octet-stream