mirror of
https://github.com/Thunderbottom/umami-alerts.git
synced 2026-01-06 05:29:29 -06:00
ci: add build and release action
* build linux-x86_64 and darwin binaries Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
28
.github/workflows/build-release.yml
vendored
Normal file
28
.github/workflows/build-release.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build Release Binaries
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release ${{ matrix.target }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-unknown-linux-musl
|
||||
archive: tar.gz tar.xz
|
||||
- target: x86_64-apple-darwin
|
||||
archive: zip
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Build and release
|
||||
uses: rust-build/rust-build.action@v1.4.5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RUSTTARGET: ${{ matrix.target }}
|
||||
EXTRA_FILES: "config.sample.toml"
|
||||
ARCHIVE_TYPES: ${{ matrix.archive }}
|
||||
Reference in New Issue
Block a user