Skip to content

Commit cbc3233

Browse files
committed
[fix] ci: fix qt6
1 parent f49bd29 commit cbc3233

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-python@v2
2020
with:
21-
python-version: '3.11'
21+
python-version: '3.13'
2222
- name: install_qt6
2323
run: |
2424
sudo apt-get update
@@ -47,9 +47,9 @@ jobs:
4747
- name: install_qt6
4848
run: |
4949
choco uninstall mingw
50-
pip install aqtinstall
51-
python3 -m aqt install-qt -m qtcharts -O ${{ github.workspace }}/Qt/ windows desktop ${{ env.QT_VERSION }} win64_mingw
52-
python3 -m aqt install-tool -O ${{ github.workspace }}/Qt/ windows desktop tools_mingw1310
50+
python -m pip install aqtinstall
51+
python -m aqt install-qt -m qtcharts -O ${{ github.workspace }}/Qt/ windows desktop ${{ env.QT_VERSION }} win64_mingw
52+
python -m aqt install-tool -O ${{ github.workspace }}/Qt/ windows desktop tools_mingw1310
5353
echo "${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/mingw_64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5454
echo "${{ github.workspace }}/Qt/Tools/mingw1310_64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5555
echo "CMAKE_PREFIX_PATH=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/mingw_64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@@ -78,6 +78,8 @@ jobs:
7878
- name: test_ft
7979
shell: bash
8080
run: |
81+
export CMAKE_PREFIX_PATH="${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/mingw_64"
82+
export Qt6_DIR="$CMAKE_PREFIX_PATH/lib/cmake/Qt6"
8183
./test.sh win
8284
8385
test_mac:

0 commit comments

Comments
 (0)