Skip to content

Commit

Permalink
Streamline the configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fire committed Jul 6, 2024
1 parent c13fa1b commit ab3e322
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,50 +36,37 @@ 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/[email protected]
with:
max-size: "10G"
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

0 comments on commit ab3e322

Please sign in to comment.