Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WASM support, add extensions support as modules, fix version logic #839

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Test install-qt-action

on:
push:
workflow_dispatch:

jobs:
build-and-deploy:
name: "Test install-qt-action"
env:
workspace_root: '/home/runner/work/aqtinstall/aqtinstall'
qt_host: 'windows'
qt_target: 'desktop'
qt_version: '6.8.0'
qt_host_arch: 'win64_msvc2022_64'
qt_host_arch_folder: 'msvc2022_64'
qt_target_wasm: 'wasm_singlethread'
qt_modules: 'qtquick3d qtpdf'
qt_modules_wasm: 'qtquick3d'
qt_root: '/home/runner/work/aqtinstall/aqtinstall/Qt'
runs-on: ubuntu-24.04
steps:
- name: Install Qt for host architecture
uses: jurplel/[email protected]
with:
version: ${{ env.qt_version }}
host: ${{ env.qt_host }}
target: ${{ env.qt_target }}
arch: ${{ env.qt_host_arch }}
dir: ${{ env.workspace_root }}
modules: ${{ env.qt_modules }}
aqtsource: 'git+https://github.com/Kidev/aqtinstall.git@semver2'

- name: Install Qt for target WASM
uses: jurplel/[email protected]
with:
version: ${{ env.qt_version }}
host: ${{ env.qt_host }}
target: ${{ env.qt_target }}
arch: ${{ env.qt_target_wasm }}
dir: ${{ env.workspace_root }}
modules: ${{ env.qt_modules_wasm }}
aqtsource: 'git+https://github.com/Kidev/aqtinstall.git@semver2'

- name: Checking installs
shell: bash
run: |
ls -la "${{ env.qt_root }}/${{ env.qt_version }}"
echo ""
echo "== HOST ${{ env.qt_host_arch_folder }} =="
ls -la "${{ env.qt_root }}/${{ env.qt_version }}/${{ env.qt_host_arch_folder }}/lib/"
echo ""
echo "== WASM =="
ls -la "${{ env.qt_root }}/${{ env.qt_version }}/${{ env.qt_target_wasm }}/lib/"
echo ""

files=(
"${{ env.qt_root }}/${{ env.qt_version }}/${{ env.qt_host_arch_folder }}/lib/Qt6Quick3D.lib"
"${{ env.qt_root }}/${{ env.qt_version }}/${{ env.qt_host_arch_folder }}/lib/Qt6Pdf.lib"
"${{ env.qt_root }}/${{ env.qt_version }}/${{ env.qt_target_wasm }}/lib/libQt6Quick3D.a"
)

for file in "${files[@]}"; do
if [ ! -f "$file" ]; then
echo "Error: File not found: $file"
exit 1
fi
done

echo "All required files are present."
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ Qt/
.eggs
qtaccount.ini
.pytest_cache
.build_standalone.sh
aqt.spec
fil-result/
memory-profile.png
mprofile_*
Loading