-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa3c2ff
commit 6e84ce1
Showing
2 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
10 changes: 5 additions & 5 deletions
10
.github/workflows/release.yml → .github/workflows/release_x86_64.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters