Skip to content

Commit

Permalink
Part 3: Build Geode Mod
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 authored Nov 8, 2024
1 parent fa00cb2 commit 6c0cb31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ inputs:
description: Whether to use LTO (Link Time Optimization) via the CMAKE_INTERPROCEDURAL_OPTIMIZATION flag, improving build size. Defaults to true
required: false
default: true
bundle-pdb:
description: Whether to bundle PDB files into the .geode package. Defaults to false
required: false
default: false

outputs:
build-output:
Expand Down Expand Up @@ -247,6 +251,9 @@ runs:
if [ "${{ inputs.use-lto }}" = "true" ]; then
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
fi
if [ "${{ inputs.bundle-pdb }}" = "true" ]; then
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DGEODE_BUNDLE_PDB=ON"
fi
cmake -B build -DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGEODE_CODEGEN_CMAKE_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja" -G Ninja $CMAKE_EXTRA_ARGS -DGEODE_DONT_INSTALL_MODS=ON -DGEODE_TARGET_PLATFORM=${{ steps.platform.outputs.target }} ${{ inputs.configure-args }}
cmake --build build --config ${{ inputs.build-config }} ${{ inputs.build-args }}
Expand Down

0 comments on commit 6c0cb31

Please sign in to comment.