File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,14 @@ jobs:
19
19
build :
20
20
name : Build
21
21
runs-on : ${{ inputs.arch }} # defaults to ubuntu-latest, for arm64 use ubuntu-24.04-arm
22
- timeout-minutes : 30
22
+ timeout-minutes : 20
23
23
steps :
24
24
- name : Checkout K3s
25
25
uses : actions/checkout@v4
26
26
- name : Build K3s binary
27
27
run : |
28
28
DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 make
29
29
sha256sum dist/artifacts/k3s | sed 's|dist/artifacts/||' > dist/artifacts/k3s.sha256sum
30
- - name : Build K3s binary (windows)
31
- if : inputs.arch == 'ubuntu-latest'
32
- run : |
33
- DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 GOOS=windows make
34
- sha256sum dist/artifacts/k3s.exe | sed 's|dist/artifacts/||' > dist/artifacts/k3s.exe.sha256sum
35
30
- name : Build K3s image
36
31
if : inputs.upload-image == true
37
32
run : make package-image
50
45
with :
51
46
name : k3s-arm64
52
47
path : dist/artifacts/k3s*
48
+ build-windows :
49
+ name : Build (windows)
50
+ if : inputs.arch == 'ubuntu-latest'
51
+ runs-on : ${{ inputs.arch }} # defaults to ubuntu-latest, for arm64 use ubuntu-24.04-arm
52
+ timeout-minutes : 20
53
+ steps :
54
+ - name : Checkout K3s
55
+ uses : actions/checkout@v4
56
+ - name : Build K3s binary
57
+ run : |
58
+ DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 GOOS=windows make
59
+ sha256sum dist/artifacts/k3s.exe | sed 's|dist/artifacts/||' > dist/artifacts/k3s.exe.sha256sum
60
+ - name : " Upload K3s Artifacts"
61
+ uses : actions/upload-artifact@v4
62
+ with :
63
+ name : k3s-windows
64
+ path : dist/artifacts/k3s*
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117
117
- name : " Download k3s binary"
118
118
uses : actions/download-artifact@v4
119
119
with :
120
- name : k3s
120
+ name : k3s-windows
121
121
path : dist/artifacts/
122
122
- name : " Run K3s"
123
123
timeout-minutes : 5
You can’t perform that action at this time.
0 commit comments