-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (62 loc) · 1.84 KB
/
QtApng.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
name: Build QtApng
on:
push:
branches: [master]
workflow_dispatch:
pull_request:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
vers: '5.15.2'
- os: macos-13
vers: '5.15.2'
- os: windows-2022
vers: '5.15.2'
arch: 'win32_msvc2019'
buildArch: 'X86'
- os: windows-2022
vers: '6.7.3'
arch: 'win64_msvc2019_64'
- os: windows-2022
vers: '6.7.3'
arch: 'win64_msvc2019_arm64'
buildArch: 'Arm64'
- os: macos-14
vers: '6.7.3'
buildArch: 'Universal'
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
cache: true
version: ${{ matrix.vers }}
arch: ${{ matrix.arch }}
- name: Build QtApng
run: pwsh pwsh/buildapng.ps1
env:
buildArch: ${{ matrix.buildArch }}
- name: 'Upload Artifact'
if: github.ref != 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: qtapng-${{ matrix.os }}-${{ matrix.vers }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}
path: QtApng/output
- name: 'Zip Artifact'
if: github.ref == 'refs/heads/master'
uses: thedoctor0/[email protected]
with:
type: 'zip'
path: QtApng/output/
filename: "qtapng-${{ matrix.os }}-${{ matrix.vers }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}.zip"
- name: 'Upload to continous release'
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v2
with:
tag_name: 'cont'
files: qtapng-*.zip