From ab3e3227dfae177e6b56d398ea5f320ac9eb230d Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sat, 6 Jul 2024 08:30:27 -0700 Subject: [PATCH] Streamline the configuration The installation of dependencies and setup for Windows has been removed Instead of uploading all files from the install directory, only specific shared libraries are uploaded now. --- .github/workflows/build.yaml | 43 +++++++++++++----------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b9e969f8..08bf09ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,15 +36,6 @@ jobs: sudo apt-get update sudo apt-get install -y ccache ninja-build - - name: Install Dependencies (Windows) - if: matrix.config.os == 'windows-latest' - run: | - choco upgrade ccache ninja - - - name: Setup MSVC (Windows) - if: matrix.config.os == 'windows-latest' - uses: ilammy/msvc-dev-cmd@v1 - - name: ccache uses: hendrikmuhs/ccache-action@v1.2 with: @@ -52,34 +43,30 @@ jobs: key: ${{ matrix.config.os }}-${{ matrix.build_type }} - name: Configure - run: > - mkdir GDExtension-build - - cmake - -B GDExtension-build - -G "Ninja" - -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - --install-prefix ${{ github.workspace }}/install-${{ matrix.build_type }} - . + run: | + mkdir -p GDExtension-build + cmake -B GDExtension-build -G "Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} . - name: Build run: cmake --build GDExtension-build - - name: Install - run: cmake --install GDExtension-build + - name: Upload artifact (Debug) + if: matrix.build_type == 'ubuntu-latest' + uses: actions/upload-artifact@v3 + with: + name: ${{ github.event.repository.name }}-${{ matrix.build_type }} + path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.so - name: Upload artifact (Debug) - if: matrix.build_type == 'Debug' + if: matrix.build_type == 'ubuntu-latest' uses: actions/upload-artifact@v3 with: - name: ${{ github.event.repository.name }}-Debug - path: | - ${{ github.workspace }}/install-${{ matrix.build_type }}/* + name: ${{ github.event.repository.name }}-${{ matrix.build_type }} + path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.dylib - name: Upload artifact (Release) - if: matrix.build_type == 'Release' + if: matrix.os == 'Release' uses: actions/upload-artifact@v3 with: - name: ${{ github.event.repository.name }}-Release - path: | - ${{ github.workspace }}/install-${{ matrix.build_type }}/* + name: ${{ github.event.repository.name }}-${{ matrix.build_type }} + path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.so