mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Merge pull request #339 from matrix-org/dmr/build-binary-for-releases
This commit is contained in:
commit
20c361ffc5
27
.github/workflows/release.yml
vendored
Normal file
27
.github/workflows/release.yml
vendored
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user