Skip to content

Commit

Permalink
ci: build use RelWithDebInfo, test use Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 9, 2024
1 parent d1b3151 commit fd78ad8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 77 deletions.
75 changes: 4 additions & 71 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "D:"

- uses: actions/checkout@v4
with:
submodules: true

- name: Setup Windows 10 SDK
uses: GuillaumeFalourd/[email protected]
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd78ad8

Please sign in to comment.