Skip to content

v0.1.1

v0.1.1 #6

Workflow file for this run

name: Upload Binarie
permissions:
contents: write
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scanner_code
steps:
- uses: actions/checkout@v3
- name: Set Targets
run: rustup target add arm-unknown-linux-gnueabihf
- name: install deps
run: sudo apt update && sudo apt-get install libssl-dev gcc-arm-linux-gnueabihf
- name: Build
run: cargo build --release --target arm-unknown-linux-gnueabihf
- uses: svenstaro/upload-release-action@v2
with:
asset_name: pi-binary
file: scanner_code/target/arm-unknown-linux-gnueabihf/release/scanner_code
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}