Skip to content

ci: Update workflows #13

ci: Update workflows

ci: Update workflows #13

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:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Pull Docker image
run: |
docker pull --platform linux/arm64 ubuntu:latest
- name: Build libbaihook
run: |
docker run --rm -v "$(pwd)" ubuntu:latest /bin/bash -c "./build.sh ${{ matrix.os }}"
- name: Release to GitHub
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
./*.so