Fix install arch for qt desktop #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-desktop: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: bernedom/qtandroidbuilder:latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Configure | |
| run: cmake --preset ci-ninja-desktop-debug | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| run: ctest --output-on-failure | |
| working-directory: build | |
| build-android: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: bernedom/qtandroidbuilder:latest | |
| strategy: | |
| matrix: | |
| arch: [arm64-v8a, armeabi-v7a, x86_64] | |
| build_type: [debug, release] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Configure | |
| run: cmake --preset ci-ninja-android-${{ matrix.arch }}-${{ matrix.build_type }} | |
| - name: Build | |
| run: cmake --build build_android | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: apk-${{ matrix.build_type }}-${{ matrix.arch }} | |
| path: ./build_android/QRLite/android-build/QRLite.apk | |
| retention-days: 7 |