Add initial Variant call and evaluate #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
paths-ignore: | |
- ".gitignore" | |
- "*.md" | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: ["Debug", "Release"] | |
config: | |
- { name: "π macOS Clang", os: macos-latest } | |
- { name: "π§ Linux GCC", os: ubuntu-latest } | |
name: π Build / ${{ matrix.config.name }} (${{ matrix.build_type }}) | |
runs-on: ${{ matrix.config.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies (macOS) | |
if: matrix.config.os == 'macos-latest' | |
run: brew install ccache ninja | |
- name: Install Dependencies (Linux) | |
if: matrix.config.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ccache ninja-build | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
max-size: "10G" | |
key: ${{ matrix.config.os }}-${{ matrix.build_type }} | |
- name: Configure | |
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: Upload artifact (Debug - Linux) | |
if: matrix.config.os == 'ubuntu-latest' && matrix.build_type == 'Debug' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-Debug-Linux | |
path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.so | |
- name: Upload artifact (Debug - macOS) | |
if: matrix.config.os == 'macos-latest' && matrix.build_type == 'Debug' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-Debug-macOS | |
path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.dylib | |
- name: Upload artifact (Release - Linux) | |
if: matrix.config.os == 'ubuntu-latest' && matrix.build_type == 'Release' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-Release-Linux | |
path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.so | |
- name: Upload artifact (Release - macOS) | |
if: matrix.config.os == 'macos-latest' && matrix.build_type == 'Release' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-Release-macOS | |
path: ${{ github.workspace }}/GDExtension-build/libgodot-riscv.dylib |