Skip to content

Commit

Permalink
dev work to auto generate binary upon release
Browse files Browse the repository at this point in the history
  • Loading branch information
8naama authored Oct 13, 2024
2 parents 1632386 + ce39b58 commit 73d7f55
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto-generate-binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Auto generate `.so` binary

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
# Get the repository's code
- name: Checkout
uses: actions/checkout@v4

# Setup Go
- name: setup go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22

# Build binary
- name: Build .so files
run: make

# Upload binary to release assets
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name }}
fail_on_unmatched_files: true
files: ./build/*.so

0 comments on commit 73d7f55

Please sign in to comment.