-
Notifications
You must be signed in to change notification settings - Fork 97
102 lines (89 loc) · 2.85 KB
/
main.yml
File metadata and controls
102 lines (89 loc) · 2.85 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
# build at least once a month
- cron: '0 0 1 * *'
jobs:
build-and-test:
strategy:
matrix:
include:
# regular builds
- ARCH: x86_64
RUNS_ON: ubuntu-24.04
BUILD_TYPE: appimage
- ARCH: i386
RUNS_ON: ubuntu-24.04
BUILD_TYPE: appimage
- ARCH: armhf
RUNS_ON: ubuntu-24.04-arm
BUILD_TYPE: appimage
- ARCH: aarch64
RUNS_ON: ubuntu-24.04-arm
BUILD_TYPE: appimage
# test build
- ARCH: x86_64
RUNS_ON: ubuntu-24.04
BUILD_TYPE: coverage
fail-fast: false
name: ${{ matrix.BUILD_TYPE }} ${{ matrix.ARCH }}
runs-on: ${{ matrix.RUNS_ON }}
env:
ARCH: ${{ matrix.ARCH }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
# make sure to always(!) pull the base image
UPDATE: 1
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: bash ci/build-in-docker.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: matrix.BUILD_TYPE != 'coverage'
with:
name: AppImage ${{ matrix.ARCH }}${{ matrix.USE_STATIC_RUNTIME}}
path: linuxdeploy*.AppImage*
freebsd-build-and-test:
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v6
with:
submodules: recursive
- uses: cross-platform-actions/action@v0.32.0
with:
operating_system: 'freebsd'
version: '15.0'
architecture: 'x86_64'
run: |
# Use latest package set
sudo mkdir -p /usr/local/etc/pkg/repos/
sudo cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
sudo sed -i.bak -e 's|/quarterly|/latest|' /usr/local/etc/pkg/repos/FreeBSD.conf
# Install deps
sudo -E pkg install -y \
bash cmake cimg googletest ninja patchelf pkgconf wget
# Run the build, skipping plugins as these aren't ready yet
bash ci/build.sh --skip-plugins
upload:
name: Create release and upload artifacts
needs:
- build-and-test
runs-on: ubuntu-latest
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 ./**/linuxdeploy*.AppImage*