Skip to content

Commit

Permalink
Add CI to compile and publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Aug 25, 2023
1 parent b032092 commit a462e97
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: compile and release binaries

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
strategy:
matrix:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: aquadoggo
tar: unix
archive: $bin-$tag-$target
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a462e97

Please sign in to comment.