Skip to content

Commit

Permalink
random ci test things (#4725)
Browse files Browse the repository at this point in the history
* test

* Simplify qt install action usage

* Add merge_group to the actions
  • Loading branch information
pajlada authored Jul 29, 2023
1 parent 4286ee4 commit 8cfa5e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- master
pull_request:
workflow_dispatch:
merge_group:

concurrency:
group: build-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- master
pull_request:
merge_group:

concurrency:
group: check-formatting-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- master
pull_request:
merge_group:

concurrency:
group: lint-${{ github.ref }}
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Test
on:
pull_request:
workflow_dispatch:
merge_group:

env:
TWITCH_PUBSUB_SERVER_IMAGE: ghcr.io/chatterino/twitch-pubsub-server-test:v1.0.6
Expand All @@ -26,33 +27,21 @@ jobs:
- os: "ubuntu-22.04"
qt-version: "6.2.4"
fail-fast: false
env:
C2_BUILD_WITH_QT6: ${{ startsWith(matrix.qt-version, '6.') && 'ON' || 'OFF' }}
QT_MODULES: ${{ startsWith(matrix.qt-version, '6.') && 'qt5compat qtimageformats' || '' }}

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set BUILD_WITH_QT6
if: startsWith(matrix.qt-version, '6.')
run: |
echo "C2_BUILD_WITH_QT6=ON" >> "$GITHUB_ENV"
shell: bash

- name: Install Qt5
if: startsWith(matrix.qt-version, '5.')
uses: jurplel/install-qt-action@v3.2.1
with:
cache: true
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2
version: ${{ matrix.qt-version }}

- name: Install Qt6
if: startsWith(matrix.qt-version, '6.')
- name: Install Qt
uses: jurplel/install-qt-action@v3.2.1
with:
cache: true
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2
modules: qt5compat qtimageformats
modules: ${{ env.QT_MODULES }}
version: ${{ matrix.qt-version }}

# LINUX
Expand Down

0 comments on commit 8cfa5e8

Please sign in to comment.