Add CLI option to specify number of noops to inject #6
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: Release Ubuntu | |
on: | |
release: | |
types: | |
- created | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
deploy: | |
name: Deploy for ${{ matrix.os }} | |
if: startsWith(github.ref, 'refs/tags') | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
name: [ubuntu-20, ubuntu-22] | |
include: | |
- name: ubuntu-20 | |
os: ubuntu-20.04 | |
artifact_name: wasm_injector | |
asset_name: wasm-injector-ubuntu-20 | |
- name: ubuntu-22 | |
os: ubuntu-22.04 | |
artifact_name: wasm_injector | |
asset_name: wasm-injector-ubuntu-22 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo build --release && mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }} | |
- name: Upload binaries to release | |
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token && gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }} |