-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(linux): Build packages for next Ubuntu version separately
This change splits the package builds into building packages for the released Ubuntu versions and for the next version. A failure to build packages for the next version will no longer fail the packaging GHA. Closes #11143. (cherry picked from commit 043f2c6)
- Loading branch information
1 parent
ed608e9
commit aae2588
Showing
2 changed files
with
117 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: build-binary-packages | ||
description: | | ||
Build binary packages | ||
inputs: | ||
dist: | ||
description: 'dist to build binary packages for' | ||
required: true | ||
arch: | ||
description: 'the architecture' | ||
required: false | ||
default: 'amd64' | ||
version: | ||
description: 'The Keyman version' | ||
required: true | ||
prerelease_tag: | ||
description: 'The prerelease tag' | ||
required: true | ||
deb_fullname: | ||
description: 'The full name used for the packages' | ||
required: true | ||
deb_email: | ||
description: 'The email address used for the packages' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 | ||
with: | ||
name: keyman-srcpkg | ||
path: artifacts/keyman-srcpkg | ||
|
||
- name: Build | ||
uses: sillsdev/gha-ubuntu-packaging@1f4b7e7eacb8c82a4d874ee2c371b9bfef7e16ea # v1.0 | ||
with: | ||
dist: "${{ inputs.dist }}" | ||
platform: "${{ inputs.arch }}" | ||
source_dir: "artifacts/keyman-srcpkg" | ||
sourcepackage: "keyman_${{ inputs.version }}-1.dsc" | ||
deb_fullname: ${{inputs.deb_fullname}} | ||
deb_email: ${{inputs.deb_email}} | ||
prerelease_tag: ${{ inputs.prerelease_tag }} | ||
|
||
- name: Output resulting .deb files | ||
shell: bash | ||
run: | | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
echo "$(find artifacts/ -name \*.deb)" >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
- name: Store binary packages | ||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 | ||
with: | ||
name: keyman-binarypkgs-${{ inputs.dist }}_${{ inputs.arch }} | ||
path: | | ||
artifacts/* | ||
!artifacts/keyman-srcpkg/ | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters