-
-
Notifications
You must be signed in to change notification settings - Fork 18
61 lines (52 loc) · 1.59 KB
/
build.yml
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
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ARCH: ['x86_64', 'i686', 'armhf', 'aarch64', 'loong64']
env:
ARCH: ${{ matrix.ARCH }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up QEMU integration for Docker
if: matrix.ARCH != 'loong64'
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Set up QEMU integration for Loong64
if: matrix.ARCH == 'loong64'
run: ./ci/prepare-loong64.sh
- name: Build in Docker container
run: |
bash -ex ci/build-in-docker.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: appimagetool-${{ matrix.ARCH }}.build
path: |
**/appimagetool*.AppImage*
upload:
name: Create release and upload artifacts
needs:
- build
runs-on: ubuntu-20.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **/appimagetool*.AppImage*