Skip to content

Commit 37078e3

Browse files
authored
ci: linux arm64 app image (#2816)
1 parent 130740e commit 37078e3

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
os: [ubuntu-latest, windows-latest, macos-latest]
23+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
2424

2525
steps:
2626
- uses: actions/checkout@v6
@@ -73,15 +73,24 @@ jobs:
7373
compression-level: 0
7474
retention-days: 30
7575

76-
- name: Upload Linux AppImage artifact
77-
if: runner.os == 'Linux'
76+
- name: Upload Linux x64 AppImage artifact
77+
if: runner.os == 'Linux' && runner.arch == 'X64'
7878
uses: actions/upload-artifact@v4
7979
with:
8080
name: UHK.Agent-linux-x86_64.AppImage
8181
path: dist/UHK.Agent-*-linux-x86_64.AppImage
8282
compression-level: 0
8383
retention-days: 30
8484

85+
- name: Upload Linux arm64 AppImage artifact
86+
if: runner.os == 'Linux' && runner.arch == 'ARM64'
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: UHK.Agent-linux-arm64.AppImage
90+
path: dist/UHK.Agent-*-linux-arm64.AppImage
91+
compression-level: 0
92+
retention-days: 30
93+
8594
- name: List dist folder on Windows
8695
if: runner.os == 'Windows'
8796
run: dir dist
@@ -99,25 +108,28 @@ jobs:
99108
uses: UltimateHackingKeyboard/build-archiver@v0.0.4
100109
if: github.ref == 'refs/heads/master' && github.event.repository.fork == false
101110
with:
102-
FILE_PATTERN: "dist/UHK.Agent-*-linux-x86_64.AppImage\ndist/UHK.Agent-*-mac.dmg\ndist/UHK.Agent-*-win*.exe"
111+
FILE_PATTERN: "dist/UHK.Agent-*-linux-x86_64.AppImage\ndist/UHK.Agent-*-linux-arm64.AppImage\ndist/UHK.Agent-*-mac.dmg\ndist/UHK.Agent-*-win*.exe"
103112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104113
S3_ACCESS_KEY: ${{ secrets.UHK_BUILD_ARCHIVER_AWS_ACCESS_SECRET }}
105114
S3_ACCESS_KEY_ID: ${{ secrets.UHK_BUILD_ARCHIVER_AWS_ACCESS_KEY }}
106115
S3_BUCKET: "uhk-build-archives"
107116
S3_KEY_PREFIX: "agent/"
108117
S3_REGION: "eu-central-1"
109118

110-
# Update GH release notes
119+
updateReleaseNotes:
120+
name: Update release notes
121+
runs-on: ubuntu-latest
122+
needs: test
123+
if: github.ref_type == 'tag'
124+
steps:
111125
- name: Strip `v` from git tag and
112-
if: github.ref_type == 'tag' && runner.os == 'Linux'
113126
run: |
114127
TAG_VERSION=${{ github.ref_name }}
115128
TAG_VERSION=${TAG_VERSION#v}
116129
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
117130
118131
- name: Extract changelog
119132
id: changelog
120-
if: github.ref_type == 'tag' && runner.os == 'Linux'
121133
env:
122134
VERSION: ${{ env.TAG_VERSION }}
123135
run: |
@@ -127,9 +139,7 @@ jobs:
127139
echo "$DELIMITER" >> $GITHUB_OUTPUT
128140
129141
- name: Update GH release description
130-
if: github.ref_type == 'tag' && runner.os == 'Linux'
131142
run: printf '%s' "$RELEASE_NOTES" | gh release edit ${{ github.ref_name }} --notes-file -
132143
env:
133144
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134145
RELEASE_NOTES: ${{ steps.changelog.outputs.content }}
135-
# end Update GH release notes

0 commit comments

Comments
 (0)