Skip to content

🔖🔧 version 0.10.0 #33

🔖🔧 version 0.10.0

🔖🔧 version 0.10.0 #33

Workflow file for this run

name: Release
on:
push:
tags:
- v*
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install cross
- run: cargo install cargo-deb
- run: cross build --features=pi --release --target armv7-unknown-linux-gnueabihf
- run: ls
- run: ls target
- run: ls target/armv7-unknown-linux-gnueabihf
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: "9-2019-q4"
- run: cargo deb --no-build --target armv7-unknown-linux-gnueabihf
- uses: actions/upload-artifact@v2
with:
name: Debian-Installer
path: target/armv7-unknown-linux-gnueabihf/debian/*.deb
- run: cp target/armv7-unknown-linux-gnueabihf/debian/*.deb ornithology-pi.deb
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ornithology-pi.deb
asset_name: ornithology-pi.deb
asset_content_type: application/vnd.debian.binary-package