-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (47 loc) · 1.49 KB
/
build.yaml
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
name: Build Hook
on: [push, pull_request]
jobs:
mac:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-11, macos-12 ]
steps:
- uses: actions/checkout@v3
- run: ./build.sh
shell: bash
env:
OUTPUT_DIR: ${{ runner.temp }}
QT_VERSION: 5.15.1
- run: otool -L "$RUNNER_TEMP/build/qtbase/lib/QtNetwork.framework/Versions/5/QtNetwork"
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: ${{ runner.temp }}/build/qtbase/lib/QtNetwork.framework/Versions/5/QtNetwork
if-no-files-found: error
win:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-2019, windows-2022 ]
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64 # Matches Qt5Network.dll 5.15.2
#toolset: 14.26 # Matches Qt5Network.dll 5.15.2
#vsversion: 2019 # Matches Qt5Network.dll 5.15.2
- run: |
curl --location --output "qt-everywhere-src-$QT_VERSION.tar.xz" --show-error --silent \
"https://download.qt.io/archive/qt/5.15/5.15.10/single/qt-everywhere-opensource-src-$QT_VERSION.tar.xz"
rm -f /usr/bin/link && ./build.sh
shell: bash
env:
QT_VERSION: 5.15.10
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: ${{ github.workspace }}/build/qtbase/lib/Qt5Network.dll
if-no-files-found: error