Skip to content

Commit 8f8dda9

Browse files
authored
Update build-updater.yaml
1 parent 3bf9125 commit 8f8dda9

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/build-updater.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,28 @@ jobs:
1818
UPDATER_DIR: ./updater
1919

2020
steps:
21-
- name: Install packages
22-
run: apk update && apk add --no-cache gcc go
21+
- name: Install packages (incl. git!)
22+
run: |
23+
apk update
24+
apk add --no-cache gcc go git
2325
2426
- uses: actions/checkout@v4
2527

2628
- name: Create output path
2729
working-directory: ${{ env.UPDATER_DIR }}
2830
run: mkdir -p output
2931

30-
- name: Build (64 bit)
32+
- name: Build (64-bit Linux)
3133
working-directory: ${{ env.UPDATER_DIR }}
3234
env:
3335
CGO_ENABLED: 1
3436
GOARCH: amd64
3537
GOOS: linux
3638
run: |
37-
go build -ldflags '-linkmode external -extldflags "-static"' -o output/updater-linux-64
39+
go build -ldflags '-linkmode external -extldflags "-static"' \
40+
-o output/updater-linux-64
3841
39-
- name: Upload build
42+
- name: Upload Linux build
4043
uses: actions/upload-artifact@v4
4144
with:
4245
name: updater-linux
@@ -54,7 +57,7 @@ jobs:
5457
steps:
5558
- uses: actions/checkout@v3
5659

57-
- name: Setup Go
60+
- name: Setup Go (with cache)
5861
uses: actions/setup-go@v4
5962
with:
6063
go-version: "1.21.3"
@@ -64,16 +67,15 @@ jobs:
6467
working-directory: ${{ env.UPDATER_DIR }}
6568
run: mkdir output
6669

67-
- name: Build (64 bit)
70+
- name: Build (64-bit Windows)
6871
working-directory: ${{ env.UPDATER_DIR }}
6972
env:
7073
CGO_ENABLED: 1
7174
GOARCH: amd64
7275
GOOS: windows
73-
run: |
74-
go build -o output\\updater-windows-64.exe
76+
run: go build -o output\\updater-windows-64.exe
7577

76-
- name: Upload build
78+
- name: Upload Windows build
7779
uses: actions/upload-artifact@v4
7880
with:
7981
name: updater-windows
@@ -89,37 +91,35 @@ jobs:
8991
UPDATER_DIR: ./updater
9092

9193
steps:
92-
- name: Setup Go
94+
- uses: actions/checkout@v3
95+
96+
- name: Setup Go (with cache)
9397
uses: actions/setup-go@v4
9498
with:
9599
go-version: "1.21.3"
96100
cache-dependency-path: updater/go.sum
97101

98-
- uses: actions/checkout@v3
99-
100102
- name: Create output path
101103
working-directory: ${{ env.UPDATER_DIR }}
102104
run: mkdir -p output
103105

104-
- name: Build (Intel 64)
106+
- name: Build (Intel macOS)
105107
working-directory: ${{ env.UPDATER_DIR }}
106108
env:
107109
CGO_ENABLED: 1
108110
GOARCH: amd64
109111
GOOS: darwin
110-
run: |
111-
go build -o output/updater-macos-64
112+
run: go build -o output/updater-macos-64
112113

113-
- name: Build (Apple M1/ARM64)
114+
- name: Build (Apple Silicon)
114115
working-directory: ${{ env.UPDATER_DIR }}
115116
env:
116117
CGO_ENABLED: 1
117118
GOARCH: arm64
118119
GOOS: darwin
119-
run: |
120-
go build -o output/updater-macos-m1-64
120+
run: go build -o output/updater-macos-m1-64
121121

122-
- name: Upload build
122+
- name: Upload macOS build
123123
uses: actions/upload-artifact@v4
124124
with:
125125
name: updater-macos

0 commit comments

Comments
 (0)