Skip to content

Commit

Permalink
github(workflow): add build and attach to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tphakala committed Mar 29, 2024
1 parent 7e8c4ee commit cfa228a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Binaries for BirdNET-Go release

on:
release:
types: [created]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
goos: [linux, windows]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build and attach to Release
uses: tphakala/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz"
md5sum: false
sha256sum: false
compress_assets: auto
build_command: make ${{ matrix.goos }}_${{ matrix.goarch }}
extra_files: libtensorflowlite_c.so

0 comments on commit cfa228a

Please sign in to comment.