From cfa228a637146dcee77e432ca719364aa72d3933 Mon Sep 17 00:00:00 2001 From: Tomi Hakala Date: Sat, 30 Mar 2024 00:03:26 +0200 Subject: [PATCH] github(workflow): add build and attach to release workflow --- .github/workflows/release-build.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 00000000..a2697dc0 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -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 \ No newline at end of file