mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
👷 Fix CI build with VS 2022 (#3580)
This commit is contained in:
parent
75b97ccd34
commit
87618d60a9
2 changed files with 22 additions and 10 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-2019, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
qt-version: [5.15.2, 5.12.10]
|
qt-version: [5.15.2, 5.12.10]
|
||||||
build-system: [qmake, cmake]
|
build-system: [qmake, cmake]
|
||||||
pch: [true]
|
pch: [true]
|
||||||
|
@ -24,10 +24,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set environment variables for windows-2019
|
- name: Set environment variables for windows-latest
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
echo "vs_version=2019" >> $GITHUB_ENV
|
echo "vs_version=2022" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2.4.0
|
||||||
|
@ -56,11 +56,18 @@ jobs:
|
||||||
version: ${{ matrix.qt-version }}
|
version: ${{ matrix.qt-version }}
|
||||||
|
|
||||||
# WINDOWS
|
# WINDOWS
|
||||||
- name: Cache conan packages
|
- name: Cache conan packages part 1
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: actions/cache@v2.1.7
|
uses: actions/cache@v2.1.7
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.txt') }}-20210412
|
key: ${{ runner.os }}-conan-user-${{ hashFiles('**/conanfile.txt') }}
|
||||||
|
path: ~/.conan/
|
||||||
|
|
||||||
|
- name: Cache conan packages part 2
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
uses: actions/cache@v2.1.7
|
||||||
|
with:
|
||||||
|
key: ${{ runner.os }}-conan-root-${{ hashFiles('**/conanfile.txt') }}
|
||||||
path: C:/.conan/
|
path: C:/.conan/
|
||||||
|
|
||||||
- name: Add Conan to path
|
- name: Add Conan to path
|
||||||
|
@ -81,7 +88,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
conan install ..
|
conan install .. -b missing
|
||||||
qmake ..
|
qmake ..
|
||||||
set cl=/MP
|
set cl=/MP
|
||||||
nmake /S /NOLOGO
|
nmake /S /NOLOGO
|
||||||
|
@ -95,7 +102,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
conan install ..
|
conan install .. -b missing
|
||||||
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DUSE_CONAN=ON ..
|
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DUSE_CONAN=ON ..
|
||||||
set cl=/MP
|
set cl=/MP
|
||||||
nmake /S /NOLOGO
|
nmake /S /NOLOGO
|
||||||
|
@ -111,6 +118,11 @@ jobs:
|
||||||
name: chatterino-windows-x86-64-${{ matrix.qt-version }}-${{ matrix.build-system }}.zip
|
name: chatterino-windows-x86-64-${{ matrix.qt-version }}-${{ matrix.build-system }}.zip
|
||||||
path: build/chatterino-windows-x86-64.zip
|
path: build/chatterino-windows-x86-64.zip
|
||||||
|
|
||||||
|
- name: Clean Conan pkgs
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
run: conan remove "*" -fsb
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# LINUX
|
# LINUX
|
||||||
- name: Install dependencies (Ubuntu)
|
- name: Install dependencies (Ubuntu)
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[requires]
|
[requires]
|
||||||
openssl/1.1.1k
|
openssl/1.1.1m
|
||||||
boost/1.76.0
|
boost/1.78.0
|
||||||
|
|
||||||
[generators]
|
[generators]
|
||||||
qmake
|
qmake
|
||||||
|
|
Loading…
Reference in a new issue