Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
20a9a6bf
Commit
20a9a6bf
authored
Feb 07, 2025
by
Brad Davidson
Committed by
Brad Davidson
Feb 07, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move windows build to separate job
Don't block other linux steps on building the windows binary Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
bc459723
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
build-k3s.yaml
.github/workflows/build-k3s.yaml
+18
-6
install.yaml
.github/workflows/install.yaml
+1
-1
No files found.
.github/workflows/build-k3s.yaml
View file @
20a9a6bf
...
@@ -19,7 +19,7 @@ jobs:
...
@@ -19,7 +19,7 @@ jobs:
build
:
build
:
name
:
Build
name
:
Build
runs-on
:
${{ inputs.arch }}
# defaults to ubuntu-latest, for arm64 use ubuntu-24.04-arm
runs-on
:
${{ inputs.arch }}
# defaults to ubuntu-latest, for arm64 use ubuntu-24.04-arm
timeout-minutes
:
3
0
timeout-minutes
:
2
0
steps
:
steps
:
-
name
:
Checkout K3s
-
name
:
Checkout K3s
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
...
@@ -27,11 +27,6 @@ jobs:
...
@@ -27,11 +27,6 @@ jobs:
run
:
|
run
:
|
DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 make
DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 make
sha256sum dist/artifacts/k3s | sed 's|dist/artifacts/||' > dist/artifacts/k3s.sha256sum
sha256sum dist/artifacts/k3s | sed 's|dist/artifacts/||' > dist/artifacts/k3s.sha256sum
-
name
:
Build K3s binary (windows)
if
:
inputs.arch == 'ubuntu-latest'
run
:
|
DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 GOOS=windows make
sha256sum dist/artifacts/k3s.exe | sed 's|dist/artifacts/||' > dist/artifacts/k3s.exe.sha256sum
-
name
:
Build K3s image
-
name
:
Build K3s image
if
:
inputs.upload-image ==
true
if
:
inputs.upload-image ==
true
run
:
make package-image
run
:
make package-image
...
@@ -50,3 +45,20 @@ jobs:
...
@@ -50,3 +45,20 @@ jobs:
with
:
with
:
name
:
k3s-arm64
name
:
k3s-arm64
path
:
dist/artifacts/k3s*
path
:
dist/artifacts/k3s*
build-windows
:
name
:
Build (windows)
if
:
inputs.arch == 'ubuntu-latest'
runs-on
:
${{ inputs.arch }}
# defaults to ubuntu-latest, for arm64 use ubuntu-24.04-arm
timeout-minutes
:
20
steps
:
-
name
:
Checkout K3s
uses
:
actions/checkout@v4
-
name
:
Build K3s binary
run
:
|
DOCKER_BUILDKIT=1 SKIP_IMAGE=1 SKIP_AIRGAP=1 SKIP_VALIDATE=1 GOCOVER=1 GOOS=windows make
sha256sum dist/artifacts/k3s.exe | sed 's|dist/artifacts/||' > dist/artifacts/k3s.exe.sha256sum
-
name
:
"
Upload
K3s
Artifacts"
uses
:
actions/upload-artifact@v4
with
:
name
:
k3s-windows
path
:
dist/artifacts/k3s*
.github/workflows/install.yaml
View file @
20a9a6bf
...
@@ -117,7 +117,7 @@ jobs:
...
@@ -117,7 +117,7 @@ jobs:
-
name
:
"
Download
k3s
binary"
-
name
:
"
Download
k3s
binary"
uses
:
actions/download-artifact@v4
uses
:
actions/download-artifact@v4
with
:
with
:
name
:
k3s
name
:
k3s
-windows
path
:
dist/artifacts/
path
:
dist/artifacts/
-
name
:
"
Run
K3s"
-
name
:
"
Run
K3s"
timeout-minutes
:
5
timeout-minutes
:
5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment