Skip to content

Commit

Permalink
Merge pull request #339 from matrix-org/dmr/build-binary-for-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Oct 11, 2023
2 parents e8315ea + 62cf2a7 commit 20c361f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Build and attach binary to release"
on:
release:
types: ["created"]
permissions:
contents: write # to upload the binaries to the release
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: ["linux"]
arch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- run: mkdir build
- run: go build -o build/syncv3_linux_${{ matrix.arch }} ./cmd/syncv3
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
files: build/syncv3_linux_${{ matrix.arch }}
fail_on_unmatched_files: true

0 comments on commit 20c361f

Please sign in to comment.