Skip to content

Commit

Permalink
okay
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus authored Feb 13, 2024
1 parent c70825a commit 3e1e316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
path: action

- uses: actions/checkout@v4
with:
repository: geode-sdk/textureldr
path: textureldr

- name: Build the mod
uses: './action/'
uses: ${{ github.workspace }}
with:
sdk: nightly
build-config: RelWithDebInfo
Expand All @@ -53,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: './combine/'
- uses: ${{ github.workspace }}/combine
id: build

- uses: actions/upload-artifact@v4
Expand Down
9 changes: 2 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ runs:
SDK_VERSION=${{ inputs.sdk }}
fi
geode sdk update $SDK_VERSION
cd $GEODE_SDK
git fetch
git switch main
git reset --hard
git pull
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}
export CPM_CACHE="${{ github.action_path }}/cpm-cache"
Expand All @@ -215,10 +210,10 @@ runs:
CMAKE_CODEGEN_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja"
elif [ ${{ steps.platform.outputs.target }} = "Android32" ]; then
CMAKE_EXTRA_ARGS="-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-${{ inputs.android-min-sdk }} -DGEODE_DONT_BUILD_TEST_MODS=1"
CMAKE_CODEGEN_ARGS="-G Ninja"
CMAKE_CODEGEN_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja"
elif [ ${{ steps.platform.outputs.target }} = "Android64" ]; then
CMAKE_EXTRA_ARGS="-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-${{ inputs.android-min-sdk }} -DGEODE_DONT_BUILD_TEST_MODS=1"
CMAKE_CODEGEN_ARGS="-G Ninja"
CMAKE_CODEGEN_ARGS="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++;-G Ninja"
fi
cmake -B build -DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -G Ninja $CMAKE_EXTRA_ARGS -DGEODE_CODEGEN_CMAKE_ARGS="$CMAKE_CODEGEN_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 3e1e316

Please sign in to comment.