-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Integrate changes from linuxmotehook2 (#14)
- Loading branch information
1 parent
2b7ec6b
commit dac63e0
Showing
3 changed files
with
25 additions
and
18 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 |
---|---|---|
|
@@ -5,9 +5,11 @@ env: | |
UBUNTU_PUBKEY: 871920D1991BC93C | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
push: | ||
branches: main | ||
release: | ||
types: published | ||
|
||
jobs: | ||
build: | ||
|
@@ -44,17 +46,16 @@ jobs: | |
TARGET_PLATFORM: ${{ matrix.platform }} | ||
shell: bash | ||
run: | | ||
set -eu | ||
find build -mindepth 1 -maxdepth 1 -type d | while read -r path; do | ||
set -a | ||
APPIMAGE_SOURCE="${path}" | ||
APPIMAGE_VERSION="${GITHUB_REF_SLUG}" | ||
APPIMAGE_APT_ARCH="${TARGET_PLATFORM#*/}" | ||
APPIMAGE_APT_DISTRO="${UBUNTU_RELEASE}" | ||
APPIMAGE_APT_PUBKEY="${UBUNTU_PUBKEY}" | ||
APPIMAGE_ARCH="$(basename "${path}")" | ||
printenv | grep ^APPIMAGE_ >>"${GITHUB_ENV}" | ||
done | ||
set -eua | ||
. build/.build-metadata.env | ||
rm build/.build-metadata.env | ||
APPIMAGE_SOURCE=build | ||
APPIMAGE_VERSION="${GITHUB_REF_SLUG}" | ||
APPIMAGE_APT_ARCH="${TARGETARCH}" | ||
APPIMAGE_APT_DISTRO="${UBUNTU_RELEASE}" | ||
APPIMAGE_APT_PUBKEY="${UBUNTU_PUBKEY}" | ||
APPIMAGE_ARCH="${TARGETMACHINE}" | ||
printenv | grep ^APPIMAGE_ >>"${GITHUB_ENV}" | ||
- name: Build AppImage | ||
uses: AppImageCrafters/[email protected] | ||
|
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
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