Skip to content
Snippets Groups Projects
Commit 70d801f5 authored by Robin Appelman's avatar Robin Appelman
Browse files

upload binaries to release

parent a3f62163
No related branches found
No related tags found
No related merge requests found
name: Release
on:
release:
types: [created]
jobs:
release-binaries:
name: Build release binaries
runs-on: ubuntu-18.04
strategy:
matrix:
target:
- x86_64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- aarch64-unknown-linux-musl
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/notify-redis
asset_name: notify-redis-${{ matrix.target }}
tag: ${{ github.ref }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment