File tree 3 files changed +39
-10
lines changed
3 files changed +39
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Release binaries
2
+ on :
3
+ release :
4
+ types :
5
+ - published
6
+
7
+ jobs :
8
+ release-amd64 :
9
+ uses : ./.github/workflows/release-binaries-base.yml
10
+ with :
11
+ arch : amd64
12
+ runner : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ name : Release binaries
2
+ on :
3
+ release :
4
+ types :
5
+ - published
6
+
7
+ jobs :
8
+ release-arm64 :
9
+ uses : ./.github/workflows/release-binaries-base.yml
10
+ with :
11
+ arch : arm64
12
+ runner : github-hosted-ubuntu-arm64
Original file line number Diff line number Diff line change 1
1
name : Release binaries
2
2
on :
3
- release :
4
- types :
5
- - published
6
-
3
+ workflow_call :
4
+ inputs :
5
+ arch :
6
+ description : ' Target architecture to build the binaries'
7
+ required : true
8
+ type : string
9
+ runner :
10
+ description : ' The github runner to run on'
11
+ required : true
12
+ type : string
7
13
jobs :
8
14
release-binaries :
9
- name : Release compiled binaries for Linux/${{matrix .arch}}
10
- runs-on : ubuntu-latest
15
+ name : Release compiled binaries for Linux/${{inputs .arch}}
16
+ runs-on : ${{inputs.runner}}
11
17
strategy :
12
18
matrix :
13
- arch : ['amd64','arm64']
14
19
go : [ '1.24' ]
15
20
steps :
16
21
- uses : actions/checkout@v3
17
22
- name : Set up Go
18
23
uses : actions/setup-go@v3
19
24
with :
20
25
go-version : ${{ matrix.go }}
21
- - name : Build Go release for linux/${{ matrix .arch }}
26
+ - name : Build Go release for linux/${{inputs .arch}}
22
27
run : make artifact
23
28
env :
24
29
GOOS : linux
25
- GOARCH : ${{ matrix .arch }}
30
+ GOARCH : ${{ inputs .arch }}
26
31
- name : Upload release asset
27
32
uses : actions/upload-release-asset@v1
28
33
env :
29
34
GITHUB_TOKEN : ${{ github.token }}
30
35
with :
31
36
upload_url : ${{ github.event.release.upload_url }}
32
37
asset_path : ./bin/beyla.tar.gz
33
- asset_name : beyla-linux-${{ matrix .arch }}-${{ github.event.release.tag_name }}.tar.gz
38
+ asset_name : beyla-linux-${{ inputs .arch }}-${{ github.event.release.tag_name }}.tar.gz
34
39
asset_content_type : application/gzip
You can’t perform that action at this time.
0 commit comments