Skip to content

Commit

Permalink
ci: Update release workflow (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine authored Jun 4, 2024
1 parent fa3c2ff commit 6e84ce1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release_aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and release aarch64 binaries

on: [push]

jobs:
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
target: ["aarch64"]
os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- uses: actions/checkout@v4

- name: Build libbaihook
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --enable qemu-aarch64
./build.sh ${{ matrix.os }}
rm -rf Makefile
- name: Release to GitHub
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
./*.so
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: default
name: Build and release x86_64 binaries

on: [push, pull_request]
on: [push]

jobs:
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
target: ["x86_64", "aarch64"]
target: ["x86_64"]
os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build libbaihook
run: |
./build.sh ${{ matrix.os }}
rm -rf Makefile
- name: Release to GitHub
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
Expand Down

0 comments on commit 6e84ce1

Please sign in to comment.