-
Notifications
You must be signed in to change notification settings - Fork 15
96 lines (80 loc) · 2.65 KB
/
main.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
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
name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 3 * * sun'
jobs:
build_linux_intel:
strategy:
matrix:
docker_image: ['realnc/qtads-build:linux-x86', 'realnc/qtads-build:linux-x64']
runs-on: ubuntu-latest
container: ${{ matrix.docker_image }}
steps:
- uses: actions/checkout@v1
- name: Build
run: |
qmake
make appimage
trigger-circleci-arm:
runs-on: ubuntu-latest
steps:
- name: Trigger CircleCI ARM builds
id: 'build-linux-arm'
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
build_mxe:
strategy:
matrix:
config:
- {image: 'realnc/qtads-build:mxe-x86', mxe_target: i686-w64-mingw32.static}
- {image: 'realnc/qtads-build:mxe-x64', mxe_target: x86_64-w64-mingw32.static}
runs-on: ubuntu-latest
container: ${{ matrix.config.image }}
steps:
- uses: actions/checkout@v1
- name: Build
run: |
${{ matrix.config.mxe_target }}-qmake-qt5
make -j`nproc`
build_macOS:
runs-on: macos-12
env:
HOMEBREW_PREFIX: /Users/Shared/homebrew-qtads-hugor
HOMEBREW_CELLAR: /Users/Shared/homebrew-qtads-hugor/Cellar
HOMEBREW_SHELLENV_PREFIX: /Users/Shared/homebrew-qtads-hugor
PKG_CONFIG_PATH: /Users/Shared/homebrew-qtads-hugor/opt/readline/lib/pkgconfig
steps:
- run: echo "${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:${PATH}" >> $GITHUB_PATH
- name: Install custom homebrew
run: |
rm -rf "${HOMEBREW_PREFIX}"
mkdir "${HOMEBREW_PREFIX}"
cd "${HOMEBREW_PREFIX}"/..
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/homebrew-qtads-hugor.tar.zst' | zstd -d | tar x
- name: Remove /usr/local homebrew
working-directory: /usr/local
run: |
sudo mkdir ~/oldbrew
sudo mv * ~/oldbrew/
- name: Download Qt
working-directory: /opt
run: |
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/qt-5.15-macos-static.tar.zst' | zstd -d | sudo tar x
- name: Add 10.15 SDK
run: |
curl -s -S -L 'https://github.com/realnc/stuff/releases/download/stuff/MacOSX10.15.sdk.tar.zst' | zstd -d | tar x
sudo mv MacOSX10.15.sdk "`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/"
- uses: actions/checkout@v2
- name: Build
run: |
/opt/qt-5.15/bin/qmake -after CONFIG-=silent
make macdist
- name: Restore /usr/local homebrew
working-directory: /usr/local
run: |
sudo rm -rf *
sudo mv ~/oldbrew/* .