Skip to content

Commit a19d845

Browse files
Update release-binaries workflow file
1 parent f913c02 commit a19d845

File tree

3 files changed

+39
-10
lines changed

3 files changed

+39
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
name: Release binaries
22
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
713
jobs:
814
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}}
1117
strategy:
1218
matrix:
13-
arch: ['amd64','arm64']
1419
go: [ '1.24' ]
1520
steps:
1621
- uses: actions/checkout@v3
1722
- name: Set up Go
1823
uses: actions/setup-go@v3
1924
with:
2025
go-version: ${{ matrix.go }}
21-
- name: Build Go release for linux/${{ matrix.arch }}
26+
- name: Build Go release for linux/${{inputs.arch}}
2227
run: make artifact
2328
env:
2429
GOOS: linux
25-
GOARCH: ${{ matrix.arch }}
30+
GOARCH: ${{ inputs.arch }}
2631
- name: Upload release asset
2732
uses: actions/upload-release-asset@v1
2833
env:
2934
GITHUB_TOKEN: ${{ github.token }}
3035
with:
3136
upload_url: ${{ github.event.release.upload_url }}
3237
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
3439
asset_content_type: application/gzip

0 commit comments

Comments
 (0)