diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d76846a8..cc78b3204 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,73 +113,6 @@ jobs: name: MAA-win-${{ matrix.arch }} path: "install" - windows_debug: - needs: meta - runs-on: windows-latest - strategy: - matrix: - arch: [x86_64] - fail-fast: false - - steps: - - name: Windows runner hack - shell: cmd - run: | - dir d:\a - cd .. - mkdir C:\MaaFramework - rmdir MaaFramework - mklink /j MaaFramework C:\MaaFramework - dism /Online /Disable-Feature /FeatureName:Windows-Defender /Remove /NoRestart /Quiet - cd . - - - name: Windows runner hack (2) - uses: al-cheb/configure-pagefile-action@v1.4 - with: - minimum-size: 16GB - maximum-size: 16GB - disk-root: "D:" - - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Setup Windows 10 SDK - uses: GuillaumeFalourd/setup-windows10-sdk-action@v2.2 - with: - sdk-version: 26100 - - - name: Bootstrap MaaDeps - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - python3 tools/maadeps-download.py x64-windows - - - name: Build MAA - run: | - cmake --preset 'MSVC 2022' -DCMAKE_SYSTEM_VERSION="10.0.26100.0" -DMAADEPS_TRIPLET="maa-x64-windows" -DMAA_HASH_VERSION='${{ needs.meta.outputs.tag }}-dbg' - - cmake --build build --preset 'MSVC 2022 - Debug' -j 16 --config Debug - - - name: Install - shell: bash - if: always() - run: | - cmake --install build --prefix install --config Debug - - cp -r docs install - cp README*.md install - - cp -r sample install - - cp -r LICENSE.md install - - - uses: actions/upload-artifact@v4 - if: always() - with: - name: MAA-win-dbg-${{ matrix.arch }} - path: "install" - ubuntu: needs: meta runs-on: ubuntu-latest @@ -247,13 +180,13 @@ jobs: -DMAA_HASH_VERSION='${{ needs.meta.outputs.tag }}' \ -DBUILD_NODEJS_BINDING=ON - cmake --build build --preset 'NinjaMulti - Release' -j 16 + cmake --build build --preset 'NinjaMulti - RelWithDebInfo' -j 16 - name: Install shell: bash if: always() run: | - cmake --install build --prefix install + cmake --install build --prefix install --config RelWithDebInfo cp -r docs install cp README*.md install @@ -395,13 +328,13 @@ jobs: -DMAADEPS_TRIPLET='maa-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-android' \ -DMAA_HASH_VERSION='${{ needs.meta.outputs.tag }}' - cmake --build build --preset 'NinjaMulti - Release' -j 16 + cmake --build build --preset 'NinjaMulti - RelWithDebInfo' -j 16 - name: Install shell: bash if: always() run: | - cmake --install build --prefix install + cmake --install build --prefix install --config RelWithDebInfo cp -r docs install cp README*.md install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f004bda58..c6ea8cb94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -99,12 +99,12 @@ jobs: run: | cmake --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }}" -DMAADEPS_TRIPLET="maa-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-windows" -DCMAKE_SYSTEM_VERSION="10.0.26100.0" -DMAA_HASH_VERSION='${{ needs.meta.outputs.tag }}' -DBUILD_NODEJS_BINDING=ON -DBUILD_PIPELINE_TESTING=ON -DBUILD_DLOPEN_TESTING=ON - cmake --build build --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }} - Release" -j 16 + cmake --build build --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }} - Debug" -j 16 - name: Install shell: bash run: | - cmake --install build --prefix install + cmake --install build --prefix install --config Debug - name: Run DlopenTesting # TODO: qemu for aarch64 @@ -221,12 +221,12 @@ jobs: -DBUILD_NODEJS_BINDING=ON \ -DBUILD_PIPELINE_TESTING=ON -DBUILD_DLOPEN_TESTING=ON - cmake --build build --preset 'NinjaMulti - Release' -j 16 + cmake --build build --preset 'NinjaMulti - Debug' -j 16 - name: Install shell: bash run: | - cmake --install build --prefix install + cmake --install build --prefix install --config Debug - name: Run DlopenTesting # TODO: qemu for aarch64 @@ -339,13 +339,13 @@ jobs: -DBUILD_NODEJS_BINDING=ON \ -DBUILD_PIPELINE_TESTING=ON -DBUILD_DLOPEN_TESTING=ON - cmake --build build --preset 'NinjaMulti - Release' -j 16 + cmake --build build --preset 'NinjaMulti - Debug' -j 16 - name: Install shell: bash if: always() run: | - cmake --install build --prefix install + cmake --install build --prefix install --config Debug - name: Run DlopenTesting shell: bash