Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 9726ab3

Browse files
committed
ci: fix binary build
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
1 parent 3f1b0c8 commit 9726ab3

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,11 @@ jobs:
6767
- name: Create cache directory
6868
run: mkdir -p .cache
6969

70-
- name: Get Mautrix Version
71-
id: mautrix_version
72-
run: echo "MAUTRIX_VERSION=$(grep 'maunium.net/go/mautrix ' go.mod | awk '{ print $2 }')" >> $GITHUB_ENV
73-
74-
- name: Set LDFLAGS
75-
run: |
76-
echo "GO_LDFLAGS=-s -w -linkmode external -extldflags '-static' \
77-
-X main.Tag=${{ github.ref_name }} -X main.Commit=${{ github.sha }} \
78-
-X 'main.BuildTime=`date -Iseconds`' \
79-
-X 'maunium.net/go/mautrix.GoModVersion=${{ env.MAUTRIX_VERSION }}'" >> $GITHUB_ENV
80-
8170
- name: Install libolm
8271
run: sudo apt-get install libolm-dev libolm3
8372

8473
- name: Build binary
85-
run: go build -ldflags "$GO_LDFLAGS" -o $BINARY_NAME ./cmd/$BINARY_NAME
74+
run: ./build.sh
8675

8776
- name: Generate SHA256 checksum
8877
run: sha256sum $BINARY_NAME | tee $BINARY_NAME.sha256sum

build.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)