{"id":20618592,"url":"https://github.com/allanchain/install-qt-static-custom","last_synced_at":"2026-01-06T14:34:33.924Z","repository":{"id":263117087,"uuid":"889398917","full_name":"AllanChain/install-qt-static-custom","owner":"AllanChain","description":"Custom static builds of Qt6","archived":false,"fork":false,"pushed_at":"2025-01-31T01:26:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T01:28:06.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AllanChain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-16T09:21:59.000Z","updated_at":"2025-01-31T01:20:12.000Z","dependencies_parsed_at":"2024-11-16T10:22:09.414Z","dependency_job_id":"8ccc90b5-994e-4595-ad6e-4111c47eb2c5","html_url":"https://github.com/AllanChain/install-qt-static-custom","commit_stats":null,"previous_names":["allanchain/install-qt-static-custom"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Finstall-qt-static-custom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Finstall-qt-static-custom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Finstall-qt-static-custom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Finstall-qt-static-custom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllanChain","download_url":"https://codeload.github.com/AllanChain/install-qt-static-custom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749858,"owners_count":20666084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T12:08:58.454Z","updated_at":"2026-01-06T14:34:33.896Z","avatar_url":"https://github.com/AllanChain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install Qt Static Action\n\n\n\u003e [!Warning]\n\u003e\n\u003e This repo is meant for customized Qt builds. For general purpose builds, see [AllanChain/install-qt-static](https://github.com/AllanChain/install-qt-static)\n\nThis action will install and set up a static version of Qt.\n\n\u003e Many thanks to [@gmh5225](https://github.com/gmh5225)'s work.\n\u003e The code is developed based on https://github.com/gmh5225/static-build-qt6\n\nStatically linking Qt can often drastically reduce your binary size, and makes deploying the app easier. However, Qt does not provide official static builds. This repo builds static Qt libraries and provide a GitHub Action to use them. An example usage looks like this:\n```yaml\n    - uses: AllanChain/install-qt-static-custom@v6.7\n    - name: Build app\n      run: |\n        # Use qt-cmake to automatically use the toolchain\n        qt-cmake .\n        cmake --build .\n```\nThe version of the action is the same as the version of Qt. See tags and releases for a full list of built Qt libraries. Please note that it is not recommended to use branches such as `v6` directly.\n\nThis repo only provide Windows (amd64) and macOS (x86_64 and arm64) builds. Linux builds are not included because Linux Qt apps prefer dynamic linking.\n\nOnly `qtbase` is included in the binaries. If you need more Qt libraries, you can fork this repo and add your own.\n\n## Example workflow\n\n```yaml\nname: Build\n\non: [workflow_dispatch, push]\n\njobs:\n  Build:\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [windows-latest, macos-latest]\n        include:\n        - os: windows-latest\n          os-caption: windows\n        - os: macos-latest\n          os-caption: macos\n\n    runs-on: ${{matrix.os}}\n    steps:\n    - uses: actions/checkout@v4\n    - uses: AllanChain/install-qt-static-custom@v6.7\n    - uses: ilammy/msvc-dev-cmd@v1\n      if: contains(matrix.os, 'windows')\n\n    - name: Build Project\n      run: |\n        mkdir build\n        cd build\n        qt-cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\" ..\n        cmake --build . --parallel --config Release\n\n    - name: Packing (Windows)\n      if: contains(matrix.os, 'windows')\n      run: |\n        mkdir release\n        move build\\Release\\myapp.exe release\n\n    - name: Packing (macOS)\n      if: contains(matrix.os, 'macos')\n      run: |\n        mkdir release\n        brew install create-dmg\n        create-dmg release/myapp.dmg build/myapp.app\n\n    - name: Create Artifact\n      uses: actions/upload-artifact@v4\n      with:\n         name: \"myapp (${{matrix.os-caption}})\"\n         path: ./release/*\n```\n\n## Developement\n\nThe [build action](.github/workflows/build.yml) builds and releases Qt builds with a tag is pushed. The version is stored in `action.yml`. To update the version, you need to run `./bump \u003cversion\u003e`. To rebuild, you need to run `./bump`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanchain%2Finstall-qt-static-custom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanchain%2Finstall-qt-static-custom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanchain%2Finstall-qt-static-custom/lists"}