-
-
Notifications
You must be signed in to change notification settings - Fork 187
84 lines (68 loc) · 2.26 KB
/
Copy pathserver-binary.yml
File metadata and controls
84 lines (68 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: GoDoxy server binaries
on:
push:
tags:
- v*
jobs:
build:
strategy:
matrix:
include:
- runner: ubuntu-latest
platform: linux/amd64
binary_name: godoxy-linux-amd64
- runner: ubuntu-24.04-arm
platform: linux/arm64
binary_name: godoxy-linux-arm64
name: Build ${{ matrix.platform }}
runs-on: ${{ matrix.runner }}
permissions:
contents: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
submodules: "recursive"
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: go.mod
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22.23.2
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
- name: Verify dependencies
run: go mod verify
- name: Install Shadowtree
run: go install github.com/yusing/shadowtree/cmd/shadowtree@ef81bde78d06dc732cd18c36c3b4206880214f38
- name: Build server
run: shadowtree build component=godoxy name=${{ matrix.binary_name }}
- name: Upload build artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ${{ matrix.binary_name }}
path: bin/${{ matrix.binary_name }}
if-no-files-found: error
release:
name: Publish release assets
needs: build
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
path: release-assets
merge-multiple: true
- name: Verify release assets
run: |
test -s release-assets/godoxy-linux-amd64
test -s release-assets/godoxy-linux-arm64
- name: Upload to release
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
with:
files: |
release-assets/godoxy-linux-amd64
release-assets/godoxy-linux-arm64