mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Build and attach {amd,arm}64 binaries to releases
This commit is contained in:
parent
fe624d5ad0
commit
aa649fdc3d
25
.github/workflows/release.yml
vendored
Normal file
25
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
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:
|
||||
arch: ["amd64", "arm64"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.20"
|
||||
- run: mkdir build
|
||||
- run: go build ./cmd/syncv3 -o build/syncv3_linux_${{ matrix.arch }}
|
||||
env:
|
||||
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