forked from srl-labs/containerlab
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 994 Bytes
/
build-containerlab.yml
File metadata and controls
40 lines (36 loc) · 994 Bytes
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
name: build-clab
"on":
workflow_call:
inputs:
go_ver:
required: true
type: string
jobs:
build-clab:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: ${{ inputs.go_ver }}
- name: Cache go modules
uses: actions/cache@v4
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build containerlab
run: make build-with-podman-debug BINARY=containerlab
# store clab binary as artifact
- name: Upload containerlab binary
uses: actions/upload-artifact@v5
with:
name: containerlab
path: containerlab
compression-level: 0