Skip to content

Various updates / fixes #150

Various updates / fixes

Various updates / fixes #150

Workflow file for this run

name: Build QtApng
on:
push:
branches: [ master ]
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
vers: ['5.15.2']
include:
- os: windows-2019
vers: '5.15.2'
forceWin32: 'true'
arch: 'win32_msvc2019'
- os: windows-2019
vers: '6.2.2'
forceWin32: 'false'
arch: 'win64_msvc2019_64'
- os: macos-12
vers: '6.2.2'
universalBinary: 'true'
- os: windows-2019
vers: '6.5.3'
forceWin32: 'false'
arch: 'win64_msvc2019_64'
- os: macos-12
vers: '6.5.3'
universalBinary: 'true'
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:
forceWin32: ${{ matrix.forceWin32 }}
universalBinary: ${{ matrix.universalBinary }}
- 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