mirror of
https://github.com/Chatterino/chatterino2.git
synced 2026-09-25 08:50:34 -04:00
Bumps [jurplel/install-qt-action](https://github.com/jurplel/install-qt-action) from 4.3.1 to 4.4.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jurplel/install-qt-action/releases">jurplel/install-qt-action's releases</a>.</em></p> <blockquote> <h2>install-qt-action v4.4.0</h2> <h2>What's Changed</h2> <ul> <li>Bump picomatch from 2.3.1 to 2.3.2 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/310">jurplel/install-qt-action#310</a></li> <li>Bump brace-expansion from 1.1.11 to 1.1.13 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/312">jurplel/install-qt-action#312</a></li> <li>Bump flatted from 3.2.6 to 3.4.2 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/313">jurplel/install-qt-action#313</a></li> <li>Bump minimatch from 3.1.2 to 3.1.5 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/311">jurplel/install-qt-action#311</a></li> <li>Limit the version of dependent Python to at least 3.10.0 by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/316">jurplel/install-qt-action#316</a></li> <li>Bump form-data in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/315">jurplel/install-qt-action#315</a></li> <li>Bump default <code>py7zr</code> to <code>1.1.*</code> by <a href="https://github.com/xavier2k6"><code>@xavier2k6</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/317">jurplel/install-qt-action#317</a></li> <li>CI: Remove <code>macos-14</code> runner image by <a href="https://github.com/xavier2k6"><code>@xavier2k6</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/319">jurplel/install-qt-action#319</a></li> <li>CI: Remove macOS 15 based runner images by <a href="https://github.com/xavier2k6"><code>@xavier2k6</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/320">jurplel/install-qt-action#320</a></li> <li>CI: Try limiting the max duration of workflow runs by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/325">jurplel/install-qt-action#325</a></li> <li>CI: Remove QTBUG-117225 workaround due to new XCode and Qt by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/326">jurplel/install-qt-action#326</a></li> <li>CI: Make runs in forked repositories manual by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/323">jurplel/install-qt-action#323</a></li> <li>chore: delete the useless top-level "package-lock.json" by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/330">jurplel/install-qt-action#330</a></li> <li>Add stacktrace with source line numbers for errors by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/334">jurplel/install-qt-action#334</a></li> <li>Output cache key after saving cache for log inspection by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/340">jurplel/install-qt-action#340</a></li> <li>Bump dependencies; be ES Modules (ESM); lint code by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/329">jurplel/install-qt-action#329</a></li> <li>fix: workaround for Bad7zFile from aqtinstall by using py7zr v1.1.0 by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/345">jurplel/install-qt-action#345</a></li> <li>Fetch requested Qt version beforehand for handling SimpleSpec input by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/335">jurplel/install-qt-action#335</a></li> <li>README: Add more details for simplespec and beta releases by <a href="https://github.com/tooomm"><code>@tooomm</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/337">jurplel/install-qt-action#337</a></li> <li>Update default Qt version and hint+examples in README by <a href="https://github.com/tooomm"><code>@tooomm</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/343">jurplel/install-qt-action#343</a></li> <li>Bump undici from 6.25.0 to 6.27.0 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/342">jurplel/install-qt-action#342</a></li> <li>Bump js-yaml from 4.1.1 to 4.2.0 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/341">jurplel/install-qt-action#341</a></li> <li>README: Update default value docs for <code>arch</code> by <a href="https://github.com/tooomm"><code>@tooomm</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/347">jurplel/install-qt-action#347</a></li> <li>Bump js-yaml from 4.2.0 to 4.3.0 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/351">jurplel/install-qt-action#351</a></li> <li>Bump brace-expansion in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/353">jurplel/install-qt-action#353</a></li> <li>Bump undici from 6.27.0 to 6.28.0 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/354">jurplel/install-qt-action#354</a></li> <li>Use GitHub Actions CI infrastructure to build and make releases by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/348">jurplel/install-qt-action#348</a></li> <li>Do not run cache test CI for pull requests due to permission issues by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/349">jurplel/install-qt-action#349</a></li> <li>Refine comments in release.yml about "workflow_dispatch" and security by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/357">jurplel/install-qt-action#357</a></li> <li>Bypass protection by using "secrets.IQTA_RELEASE_PAT" during release by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/358">jurplel/install-qt-action#358</a></li> <li>Bump js-yaml from 4.3.0 to 4.3.1 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/355">jurplel/install-qt-action#355</a></li> <li>Pin actions to commit hash by <a href="https://github.com/Nerixyz"><code>@Nerixyz</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/360">jurplel/install-qt-action#360</a></li> <li>README: Harmonize arch label around bit-ness for Windows x64 by <a href="https://github.com/tooomm"><code>@tooomm</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/359">jurplel/install-qt-action#359</a></li> <li>Call internal action with self-repository syntax ($) for full-length SHA and hack the path before running tests by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/361">jurplel/install-qt-action#361</a></li> <li>Bump js-yaml from 4.3.1 to 4.3.2 in /action by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/363">jurplel/install-qt-action#363</a></li> <li>Make docs of "arch" calculation match the code; tiny docs improvement by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/364">jurplel/install-qt-action#364</a></li> <li>Show error message for wrong action usage on non-tagging branches by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/365">jurplel/install-qt-action#365</a></li> <li>Sync internal metadata file with the top-level one; format comments by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/366">jurplel/install-qt-action#366</a></li> <li>Switch the default version back to "6.8.3" for best usability; Update comments about the choice of v6.8.3 in Cache-SimpleSpec test by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/367">jurplel/install-qt-action#367</a></li> <li>Bump default Python version to 3.14 and add check for zipfile bug by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/368">jurplel/install-qt-action#368</a></li> <li>Release CI: avoid conflict; check branch relationship in simpler way; add "use_pat" to select the push token by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/369">jurplel/install-qt-action#369</a></li> <li>Upgrade external actions to the same version (commit) in CI; update stall info; fix inconsistency between code and docs by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/370">jurplel/install-qt-action#370</a></li> <li>Release CI: compose commit message during creation of the new commit; output both two inputs in the title of each run by <a href="https://github.com/pzhlkj6612"><code>@pzhlkj6612</code></a> in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/371">jurplel/install-qt-action#371</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/tooomm"><code>@tooomm</code></a> made their first contribution in <a href="https://redirect.github.com/jurplel/install-qt-action/pull/337">jurplel/install-qt-action#337</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jurplel/install-qt-action/compare/v4.3.1...v4.4.0">https://github.com/jurplel/install-qt-action/compare/v4.3.1...v4.4.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jurplel/install-qt-action/commit/bcb88e3bed2e992f5f9e24c0f9e364a231d278eb"><code>bcb88e3</code></a> Build v4.4.0 on branch v4</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/1e113eb0b10bb56e3050ae806f0cadd451353b40"><code>1e113eb</code></a> Merge pull request <a href="https://redirect.github.com/jurplel/install-qt-action/issues/371">#371</a></li> <li><a href="https://github.com/jurplel/install-qt-action/commit/b26b36ad63ba80eca88eb5fa7e5006139deb59cf"><code>b26b36a</code></a> Release CI: output both two inputs in the title of each run</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/f77ca7b61de4531aed46d506580cfafd2176a49a"><code>f77ca7b</code></a> Release CI: compose commit message during creation of the new commit</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/97e80f6ec9289e82d5d6fc923bbb102732e3ff41"><code>97e80f6</code></a> Merge pull request <a href="https://redirect.github.com/jurplel/install-qt-action/issues/370">#370</a></li> <li><a href="https://github.com/jurplel/install-qt-action/commit/4f8cf9caaff88e3352a47a19914e67efa158703b"><code>4f8cf9c</code></a> README: make docs match the code behavior</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/3a95d49254fe7807d3a552ad17f9a335c5dbd9fb"><code>3a95d49</code></a> README_upgrade_guide.md: aqtinstall has versions newer than 3.1</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/30bfcefec791527cd807b56b5b09c30dbc705dab"><code>30bfcef</code></a> CI: sync versions of external actions</li> <li><a href="https://github.com/jurplel/install-qt-action/commit/8ab04765858315fe74549dccb7d2ff94a1b4f48a"><code>8ab0476</code></a> Merge pull request <a href="https://redirect.github.com/jurplel/install-qt-action/issues/369">#369</a></li> <li><a href="https://github.com/jurplel/install-qt-action/commit/223b104d3ac30fd5b4dbce16df14e13ad418f1ad"><code>223b104</code></a> Release CI: add "use_pat" to select the push token</li> <li>Additional commits viewable in <a href="https://github.com/jurplel/install-qt-action/compare/48d3ad6db93f3627c8ee7a0454bc6f3744f7e730...bcb88e3bed2e992f5f9e24c0f9e364a231d278eb">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
149 lines
5.1 KiB
YAML
149 lines
5.1 KiB
YAML
---
|
|
name: Test Windows
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
merge_group:
|
|
|
|
env:
|
|
TWITCH_PUBSUB_SERVER_TAG: v1.0.12
|
|
HTTPBOX_TAG: v0.2.1
|
|
QT_QPA_PLATFORM: minimal
|
|
CONAN_VERSION: 2.28.1
|
|
|
|
concurrency:
|
|
group: test-windows-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-windows:
|
|
name: "Test ${{ matrix.os }}, Qt ${{ matrix.qt-version }}"
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
qt-version: [6.8.3]
|
|
skip-artifact: [false]
|
|
skip-crashpad: [false]
|
|
fail-fast: false
|
|
env:
|
|
QT_MODULES: qtimageformats
|
|
C2_USE_OPENSSL3: ${{ case(startsWith(matrix.qt-version, '6.'), 'True', 'False') }}
|
|
C2_CONAN_CACHE_SUFFIX: ${{ case(startsWith(matrix.qt-version, '6.'), '-QT6', '') }}
|
|
|
|
steps:
|
|
- name: Set Crashpad
|
|
if: matrix.skip-crashpad == false
|
|
run: |
|
|
echo "C2_ENABLE_CRASHPAD=ON" >> "$Env:GITHUB_ENV"
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 0 # allows for tags access
|
|
persist-credentials: false
|
|
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@bcb88e3bed2e992f5f9e24c0f9e364a231d278eb # v4.4.0
|
|
with:
|
|
cache: true
|
|
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-v2
|
|
modules: ${{ env.QT_MODULES }}
|
|
version: ${{ matrix.qt-version }}
|
|
|
|
- name: Enable Developer Command Prompt
|
|
uses: Chatterino/msvc-dev-cmd@24444121cb2805a7adbd23d0f4455d0916af896b # v2.0.7
|
|
|
|
- name: Setup sccache
|
|
# sccache v0.7.4
|
|
uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23
|
|
with:
|
|
variant: sccache
|
|
# only save on the default (master) branch
|
|
save: ${{ github.event_name == 'push' }}
|
|
key: sccache-test-${{ matrix.os }}-${{ matrix.qt-version }}-${{ matrix.skip-crashpad }}
|
|
restore-keys: |
|
|
sccache-test-${{ matrix.os }}-${{ matrix.qt-version }}
|
|
|
|
- name: Cache conan packages
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
key: ${{ runner.os }}-conan-user-${{ hashFiles('**/conanfile.py') }}${{ env.C2_CONAN_CACHE_SUFFIX }}
|
|
path: ~/.conan2/
|
|
|
|
- name: Install Conan
|
|
run: |
|
|
python3 -c "import site; import sys; print(f'{site.USER_BASE}\\Python{sys.version_info.major}{sys.version_info.minor}\\Scripts')" >> "$Env:GITHUB_PATH"
|
|
pip3 install --user "conan==${{ env.CONAN_VERSION }}"
|
|
|
|
- name: Setup Conan
|
|
run: |
|
|
conan --version
|
|
conan profile detect -f
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
mkdir build-test
|
|
cd build-test
|
|
conan install .. `
|
|
-s build_type=RelWithDebInfo `
|
|
-c tools.cmake.cmaketoolchain:generator="NMake Makefiles" `
|
|
-b missing `
|
|
--output-folder=. `
|
|
-o with_openssl3="$Env:C2_USE_OPENSSL3"
|
|
|
|
# The Windows runners currently use an older version of the CRT
|
|
- name: Install CRT
|
|
run: |
|
|
mkdir -Force build-test/bin
|
|
cp "$((ls $Env:VCToolsRedistDir/onecore/x64 -Filter '*.CRT')[0].FullName)/*" build-test/bin
|
|
|
|
- name: Install httpbox
|
|
run: |
|
|
mkdir httpbox
|
|
Invoke-WebRequest -Uri "https://github.com/Chatterino/httpbox/releases/download/${{ env.HTTPBOX_TAG }}/httpbox-x86_64-pc-windows-msvc.zip" -outfile "httpbox.zip"
|
|
Expand-Archive httpbox.zip -DestinationPath httpbox
|
|
rm httpbox.zip
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake `
|
|
-G Ninja `
|
|
-DCMAKE_CXX_COMPILER=clang-cl `
|
|
-DCMAKE_C_COMPILER=clang-cl `
|
|
-DCMAKE_RC_COMPILER=llvm-rc `
|
|
-DCMAKE_LINKER_TYPE=LLD `
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
|
-DBUILD_TESTS=On `
|
|
-DBUILD_APP=OFF `
|
|
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" `
|
|
-DUSE_PRECOMPILED_HEADERS=On `
|
|
-DBUILD_WITH_CRASHPAD="$Env:C2_ENABLE_CRASHPAD" `
|
|
-DCHATTERINO_SPELLCHECK=On `
|
|
..
|
|
ninja
|
|
working-directory: build-test
|
|
|
|
- name: Download and extract Twitch PubSub Server Test
|
|
run: |
|
|
mkdir pubsub-server-test
|
|
Invoke-WebRequest -Uri "https://github.com/Chatterino/twitch-pubsub-server-test/releases/download/${{ env.TWITCH_PUBSUB_SERVER_TAG }}/server-${{ env.TWITCH_PUBSUB_SERVER_TAG }}-windows-amd64.zip" -outfile "pubsub-server.zip"
|
|
Expand-Archive pubsub-server.zip -DestinationPath pubsub-server-test
|
|
rm pubsub-server.zip
|
|
cd pubsub-server-test
|
|
cd ..
|
|
|
|
- name: Test
|
|
timeout-minutes: 30
|
|
run: |
|
|
..\httpbox\httpbox.exe --port 9051 &
|
|
cd ..\pubsub-server-test
|
|
./server 127.0.0.1:9050 127.0.0.1:9052 &
|
|
cd ..\build-test
|
|
ctest --repeat until-pass:4 --output-on-failure
|
|
working-directory: build-test
|
|
|
|
- name: Clean Conan cache
|
|
run: conan cache clean --source --build --download "*"
|