Skip to content

Commit 5886d21

Browse files
Update GitHub CI, removing lunar and adding noble (kozec#3)
* feat(ci): trigger build on release and manual action * feat(ci): update actions * fix: revert upload-artifact action due to actions/upload-artifact#478 * chore(ci): remove support for outdated ubuntu lunar
1 parent 11b298a commit 5886d21

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/appimage.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build and publish AppImages
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
release:
5+
types: [published]
6+
workflow_dispatch:
77

88
env:
99
BASE_OS: ubuntu
@@ -16,37 +16,39 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
platform:
20-
- linux/amd64
21-
- linux/arm64
19+
target:
20+
- platform: linux/amd64
21+
arch: amd64
22+
- platform: linux/arm64
23+
arch: arm64
2224
codename:
2325
- jammy
24-
- lunar
2526
- mantic
27+
- noble
2628

2729
steps:
2830
- uses: actions/checkout@v4
2931
- uses: rlespinasse/github-slug-action@v4
3032

3133
- name: Setup qemu for docker
32-
uses: docker/setup-qemu-action@v2
33-
if: matrix.platform != 'linux/amd64'
34+
uses: docker/setup-qemu-action@v3
35+
if: matrix.target.platform != 'linux/amd64'
3436

3537
- name: Setup buildx for docker
36-
uses: docker/setup-buildx-action@v2
38+
uses: docker/setup-buildx-action@v3
3739

3840
- name: Compile in docker
39-
uses: docker/build-push-action@v4
41+
uses: docker/build-push-action@v5
4042
with:
41-
platforms: ${{ matrix.platform }}
43+
platforms: ${{ matrix.target.platform }}
4244
outputs: build
4345
build-args: |
4446
BASE_OS
4547
BASE_CODENAME=${{ matrix.codename }}
4648
4749
- name: Prepare environment to build AppImage
4850
env:
49-
TARGET_PLATFORM: ${{ matrix.platform }}
51+
TARGET_PLATFORM: ${{ matrix.target.platform }}
5052
shell: bash
5153
run: |
5254
set -eua
@@ -66,9 +68,9 @@ jobs:
6668
uses: AppImageCrafters/[email protected]
6769

6870
- name: Upload artifacts
69-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7072
with:
71-
name: appimages
73+
name: appimage-${{ matrix.codename }}-${{ matrix.target.arch }}
7274
path: |
7375
./*.AppImage
7476
./*.AppImage.zsync
@@ -86,10 +88,11 @@ jobs:
8688

8789
steps:
8890
- name: Download artifacts
89-
uses: actions/download-artifact@v3
91+
uses: actions/download-artifact@v4
9092
with:
91-
name: appimages
93+
pattern: appimage-*
9294
path: assets
95+
merge-multiple: true
9396
- name: Create checksum for release assets
9497
shell: bash
9598
run: |

.github/workflows/scc-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- main
1212
- master
1313
- python3
14+
workflow_dispatch:
1415

1516
jobs:
1617
build:

0 commit comments

Comments
 (0)