Repository navigation
86 lines (83 loc) · 3.6 KB
/
Copy pathappimage-nightly.yml
File metadata and controls
86 lines (83 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Anylinux-AppImage (Nightly)
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# comment these two out to enable nightly builds, This sets the variable DEVEL_RELEASE=1 for #
# get-dependencies.sh to make a nightly release, this will make a release with 'nightly' tag #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# schedule:
# - cron: "0 5 1/2 * *" # We default to rebuilding nightly every 2 days, change this to your liking
workflow_dispatch: {}
jobs:
build:
name: "${{ matrix.name }} (${{ matrix.arch }})"
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- { runs-on: ubuntu-24.04, name: Build AppImage, arch: x86_64 }
# comment out this line if aarch64 is not wanted
- { runs-on: ubuntu-24.04-arm, name: Build AppImage, arch: aarch64 }
container: ghcr.io/pkgforge-dev/archlinux:latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Preparing Container
uses: pkgforge-dev/anylinux-setup-action@ba7321e11074f9e387a0634e653d09b115d576cd # v6
- name: Install Dependencies
run: DEVEL_RELEASE=1 /bin/sh ./get-dependencies.sh
- name: Make AppImage
run: DEVEL_RELEASE=1 /bin/sh ./make-appimage.sh
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: AppImage-${{ matrix.arch }}
path: dist
# this part runs via QEMU so expect higher CI times
build-additional-cpu-arches:
if: false # set to true to build the below arches
name: "${{ matrix.name }} (${{ matrix.arch }})"
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
# comment out the arches that are not wanted
# note 'if: false' is set by default and these are all turned off
- { name: Build AppImage, arch: riscv64, platform: linux/riscv64 }
- { name: Build AppImage, arch: loongarch64, platform: linux/loong64 }
- { name: Build AppImage, arch: ppc64le, platform: linux/ppc64le }
- { name: Build AppImage, arch: ppc64, platform: linux/ppc64 } # BE
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build AppImage (emulated)
uses: pkgforge-dev/anylinux-setup-action/emulated@ba7321e11074f9e387a0634e653d09b115d576cd # v6
with:
platform: ${{ matrix.platform }}
env:
DEVEL_RELEASE: 1
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: AppImage-${{ matrix.arch }}
path: dist
release:
# !cancelled() lets a release happen if build-additional-cpu-arches if turned off
if: >-
${{ !cancelled() && github.ref_name == 'main'
&& needs.build.result == 'success'
&& needs.build-additional-cpu-arches.result != 'failure' }}
needs: [build, build-additional-cpu-arches]
permissions: write-all
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: AppImage-*
merge-multiple: true
continue-on-error: true
- name: Release Nightly AppImage
uses: pkgforge-dev/make-nightly-appimage-release@17cbe90fc0796286e424619a54a82a3a880efe4c # v1.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}