Skip to content

Commit 609813b

Browse files
pajladaWissididom
andauthored
fix: enable CI in fork (#6)
Co-authored-by: Wissididom <[email protected]>
1 parent 26deab5 commit 609813b

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

.github/workflows/ci.yml

+15-24
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [master, chatterino-cmake]
66
pull_request:
7-
branches: [master]
7+
branches: [master, chatterino-cmake]
88

99
jobs:
1010
build:
@@ -17,20 +17,18 @@ jobs:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818

1919
steps:
20-
- name: Cache Qt
21-
id: cache-qt
22-
uses: actions/cache@v1
23-
with:
24-
path: ../Qt
25-
key: ${{runner.os}}-QtCache
26-
2720
- name: Install Qt
28-
uses: jurplel/install-qt-action@v2
21+
uses: jurplel/install-qt-action@v4
2922
with:
30-
cached: ${{steps.cache-qt.outputs.cache-hit}}
23+
cache: true
24+
cache-key-prefix: install-qt-action-${{runner.os}}
3125

3226
- name: Git Checkout
33-
uses: actions/checkout@v1
27+
uses: actions/checkout@v4
28+
29+
- name: Enable Developer Command Prompt
30+
uses: ilammy/msvc-dev-cmd@v1
31+
if: matrix.os == 'windows-latest'
3432

3533
- name: Build
3634
run: |
@@ -41,7 +39,6 @@ jobs:
4139

4240
- name: Build
4341
run: |
44-
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
4542
qmake -v
4643
qmake -config verbose -config ${{matrix.config}}
4744
set CL=/MP
@@ -58,23 +55,17 @@ jobs:
5855
runs-on: ubuntu-latest
5956

6057
steps:
61-
- name: Cache Qt
62-
id: cache-qt
63-
uses: actions/cache@v1
64-
with:
65-
path: ../Qt
66-
key: ${{runner.os}}-QtCache
67-
6858
- name: Install Qt
69-
uses: jurplel/install-qt-action@v2
59+
uses: jurplel/install-qt-action@v4
7060
with:
71-
cached: ${{steps.cache-qt.outputs.cache-hit}}
61+
cache: true
62+
cache-key-prefix: install-qt-action-${{runner.os}}
7263

7364
- name: Install LCOV
7465
run: sudo apt install lcov
7566

7667
- name: Git Checkout
77-
uses: actions/checkout@v1
68+
uses: actions/checkout@v4
7869

7970
- name: Configure
8071
run: |
@@ -90,7 +81,7 @@ jobs:
9081
cat coverage/Irc*.cov > coverage/lcov.info
9182
9283
- name: Upload Coverage
93-
uses: codecov/codecov-action@v1.0.6
84+
uses: codecov/codecov-action@v5.1.2
9485
with:
9586
token: ${{secrets.CODECOV_TOKEN}}
9687
file: coverage/lcov.info

0 commit comments

Comments
 (0)