Merge pull request #5 from jdpurcell/pr-winvcrworkaround #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build KImageFormats | |
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-12 | |
vers: '5.15.2' | |
- os: windows-2022 | |
vers: '5.15.2' | |
arch: 'win32_msvc2019' | |
buildArch: 'X86' | |
- os: windows-2022 | |
vers: '6.2.2' | |
arch: 'win64_msvc2019_64' | |
- os: macos-12 | |
vers: '6.2.2' | |
buildArch: 'Universal' | |
- os: windows-2022 | |
vers: '6.5.3' | |
arch: 'win64_msvc2019_64' | |
- os: windows-2022 | |
vers: '6.5.3' | |
arch: 'win64_msvc2019_arm64' | |
buildArch: 'Arm64' | |
- os: macos-12 | |
vers: '6.5.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 }} | |
# Download and build vcpkg, without installing any port. If content is cached already, it is a no-op. | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@v11 | |
with: | |
vcpkgGitCommitId: '7eb700c9688daed6d8bdcdc571ebe3eedea6a774' | |
- name: Build KImageFormats (just one big step for now) | |
run: pwsh pwsh/buildkimageformats.ps1 | |
env: | |
buildArch: ${{ matrix.buildArch }} | |
- name: 'Upload Artifact' | |
if: github.ref != 'refs/heads/master' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kimageformats-${{ matrix.os }}-${{ matrix.vers }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }} | |
path: kimageformats/output | |
- name: 'Zip Artifact' | |
if: github.ref == 'refs/heads/master' | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
path: kimageformats/output/ | |
filename: "kimageformats-${{ 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: kimageformats-*.zip |