diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7aae00..dd5d3f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,13 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 + with: + path: action - uses: actions/checkout@v3 with: repository: geode-sdk/textureldr - name: Build the mod - uses: ./ + uses: ./action diff --git a/action.yml b/action.yml index 9cd3c9d..b98d872 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,10 @@ runs: if [ "$ID" = "win" ]; then CLI="./geode.exe"; else CLI="./geode"; fi echo "id=$ID" >> $GITHUB_OUTPUT echo "cli=$CLI" >> $GITHUB_OUTPUT + + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x86 - name: Download CLI uses: robinraju/release-downloader@v1.8 @@ -48,4 +52,17 @@ runs: SDK_VERSION=${{ inputs.sdk }} fi geode sdk update $SDK_VERSION - geode sdk install-binaries \ No newline at end of file + geode sdk install-binaries + + - name: Run CMake and build + shell: bash + run: | + cd ${{ github.workspace }} + echo "is it still set $GEODE_SDK" + if [ "$RUNNER_OS" = "Windows" ]; then + CMAKE_EXTRA_ARGS="-T host=x64 -A win32" + else + CMAKE_EXTRA_ARGS="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" + fi + cmake -B build $CMAKE_EXTRA_ARGS -DGEODE_DONT_INSTALL_MODS=On -DGEODE_DONT_UPDATE_INDEX=On + cmake --build build --config Release \ No newline at end of file