Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add symbols for release #455

Merged
merged 5 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 8 additions & 75 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ jobs:
run: |
cmake --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }}" -DCMAKE_SYSTEM_VERSION="10.0.26100.0" -DMAADEPS_TRIPLET="maa-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-windows" -DMAA_HASH_VERSION='${{ needs.meta.outputs.tag }}' -DBUILD_NODEJS_BINDING=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' }} - RelWithDebInfo" -j 16

- name: Install
shell: bash
if: always()
run: |
cmake --install build --prefix install
cmake --install build --prefix install --config RelWithDebInfo
rm -rf install/bin/msvc-debug

cp -r docs install
Expand All @@ -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
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 @@ -329,13 +262,13 @@ jobs:
-DCMAKE_CXX_COMPILER=${LLVM_PREFIX}/bin/clang++ \
-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
42 changes: 29 additions & 13 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,11 @@
"jobs": 16
},
{
"name": "NinjaMulti Win32 - Debug",
"displayName": "Ninja MultiConfig Win32 Debug",
"description": "Ninja MultiConfig Win32 Debug",
"configurePreset": "NinjaMulti Win32",
"configuration": "Debug",
"jobs": 16
},
{
"name": "NinjaMulti Win32 - Release",
"displayName": "Ninja NinjaMulti Win32 Release",
"description": "Ninja NinjaMulti Win32 Release",
"configurePreset": "NinjaMulti Win32",
"configuration": "Release",
"name": "NinjaMulti - RelWithDebInfo",
"displayName": "Ninja MultiConfig RelWithDebInfo",
"description": "Ninja MultiConfig RelWithDebInfo",
"configurePreset": "NinjaMulti",
"configuration": "RelWithDebInfo",
"jobs": 16
},
{
Expand All @@ -109,13 +101,37 @@
"configuration": "Release",
"jobs": 16
},
{
"name": "MSVC 2022 - RelWithDebInfo",
"displayName": "MSVC 2022 RelWithDebInfo",
"description": "MSVC 2022 RelWithDebInfo",
"configurePreset": "MSVC 2022",
"configuration": "RelWithDebInfo",
"jobs": 16
},
{
"name": "MSVC 2022 ARM - Debug",
"displayName": "MSVC 2022 ARM Debug",
"description": "MSVC 2022 ARM Debug",
"configurePreset": "MSVC 2022 ARM",
"configuration": "Debug",
"jobs": 16
},
{
"name": "MSVC 2022 ARM - Release",
"displayName": "MSVC 2022 ARM Release",
"description": "MSVC 2022 ARM Release",
"configurePreset": "MSVC 2022 ARM",
"configuration": "Release",
"jobs": 16
},
{
"name": "MSVC 2022 ARM - RelWithDebInfo",
"displayName": "MSVC 2022 ARM RelWithDebInfo",
"description": "MSVC 2022 ARM RelWithDebInfo",
"configurePreset": "MSVC 2022 ARM",
"configuration": "RelWithDebInfo",
"jobs": 16
}
]
}
15 changes: 12 additions & 3 deletions cmake/post_install/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
if(APPLE)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
install(
CODE "
execute_process(
COMMAND \${CMAKE_SOURCE_DIR}/tools/mac_post_install.sh \${CMAKE_INSTALL_PREFIX} -r
)
")
endif()

install(
CODE "
execute_process(
COMMAND \${CMAKE_SOURCE_DIR}/tools/fix_mac_rpath.sh \${CMAKE_INSTALL_PREFIX}
COMMAND \${CMAKE_SOURCE_DIR}/tools/mac_post_install.sh \${CMAKE_INSTALL_PREFIX} -d
)
")
" CONFIGURATIONS RelWithDebInfo)
endif()
63 changes: 0 additions & 63 deletions tools/fix_mac_rpath.sh

This file was deleted.

Loading
Loading