Skip to content

Commit 030bbac

Browse files
chore(ci): add option to only build single arch package
1 parent d3b1819 commit 030bbac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/actions/package/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: "Build packages"
22
description: "Build RPM and DEB packages for multiple architectures"
3+
inputs:
4+
build-targets:
5+
description: "Set to x86_64, aarch64, or both to choose which packages to build"
6+
required: false
7+
default: both
38

49
runs:
510
using: "composite"
@@ -36,12 +41,14 @@ runs:
3641
echo "VERSION=${{ github.ref_name }}" >> "$GITHUB_ENV"
3742
fi
3843
- name: Build x86_64 packages
44+
if: ${{ inputs.build-targets != 'aarch64' }}
3945
env:
4046
CARGO_TARGET: x86_64-unknown-linux-gnu
4147
GLIBC_VERSION: 2.27
4248
shell: bash
4349
run: make package
4450
- name: Build aarch64 packages
51+
if: ${{ inputs.build-targets != 'x86_64' }}
4552
env:
4653
CARGO_TARGET: aarch64-unknown-linux-gnu
4754
BIN_UTIL_PREFIX: aarch64-linux-gnu-

0 commit comments

Comments
 (0)