Skip to content

Commit 5e5ff30

Browse files
Merge pull request #1705 from PolyMC/kaydax/fix-workflow
Fix CI build workflow
2 parents 470283a + 5998c74 commit 5e5ff30

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
matrix:
2020
include:
2121

22-
- os: ubuntu-20.04
22+
- os: ubuntu-22.04
2323
qt_ver: 5
2424

25-
- os: ubuntu-20.04
25+
- os: ubuntu-22.04
2626
qt_ver: 6
2727
qt_host: linux
2828
qt_version: '6.2.4'
@@ -57,6 +57,7 @@ jobs:
5757
runs-on: ${{ matrix.os }}
5858

5959
env:
60+
CMAKE_POLICY_VERSION_MINIMUM: 3.5
6061
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
6162
INSTALL_DIR: "install"
6263
INSTALL_PORTABLE_DIR: "install-portable"
@@ -105,7 +106,7 @@ jobs:
105106
106107
- name: Setup ccache
107108
if: runner.os != 'Windows' && inputs.build_type == 'Debug'
108-
uses: hendrikmuhs/ccache-action@v1.2.1
109+
uses: hendrikmuhs/ccache-action@v1.2.18
109110
with:
110111
key: ${{ matrix.os }}-qt${{ matrix.qt_ver }}
111112

@@ -127,7 +128,7 @@ jobs:
127128
128129
- name: Retrieve ccache cache (Windows)
129130
if: runner.os == 'Windows' && inputs.build_type == 'Debug'
130-
uses: actions/cache@v3.0.2
131+
uses: actions/cache@v3.4.3
131132
with:
132133
path: '${{ github.workspace }}\.ccache'
133134
key: ${{ matrix.os }}-qt${{ matrix.qt_ver }}

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cmake_minimum_required(VERSION 3.15) # minimum version required by QuaZip
22

3-
if(WIN32)
4-
# In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows
5-
cmake_policy(SET CMP0020 OLD)
6-
endif()
3+
# if(WIN32)
4+
# # In Qt 5.1+ we have our own main() function, don't autolink to qtmain on Windows
5+
# cmake_policy(SET CMP0020 OLD)
6+
# endif()
77

88
project(Launcher)
99

0 commit comments

Comments
 (0)