-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build use RelWithDebInfo, test use Debug
- Loading branch information
Showing
2 changed files
with
10 additions
and
77 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains 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