Skip to content

Workflow file for this run

name: Build and Upload Binary
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build the binary
run: cargo build --release
- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: vcd-to-csv
path: target/release/vcd-to-csv
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/release/vcd-to-csv
asset_name: vcd-to-csv
asset_content_type: application/octet-stream