Skip to content

trying to fix syntax #4

trying to fix syntax

trying to fix syntax #4

Workflow file for this run

name: Continuous Integration (cmake)

Check failure on line 1 in .github/workflows/ci-cmake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cmake.yml

Invalid workflow file

Invalid type for `job.strategy`
on: [push, pull_request]
env:
# Only used for the cache key. Increment version to force clean build.
GODOT_BASE_BRANCH: master
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.icon }} ${{ matrix.platform }}(${{matrix.arch}}, ${{ matrix.compiler }} ${{ matrix.extra_label }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
# runner: [ubuntu-20.04, windows-2019, macos-11]
# platform`: [android, ios, linux, macos, web, windows]
# arch: [arm32, arm64, ppc32, ppc64, rv64, wasm32, x86_32, x86_64]
# target: [editor, release]
# compiler: [gcc, clang, msvc, mingw]
# build_type: [release, debug]
# precision: [single, double]
# icon: [πŸ§πŸπŸŽπŸ€–πŸπŸŒ]
include:
- runner: ubuntu-20.04
icon: 🐧
platform: linux
arch: x86_64
compiler: gcc
include:
- runner: ubuntu-20.04
icon: 🐧
platform: linux
arch: x86_64
compiler: gcc
extra_label: double
extra_config: -DFLOAT_PRECISION:STRING=double
include:
- runner: windows-2019
icon: 🏁
platform: windows
arch: x86_64
compiler: msvc
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Android dependencies
if: ${{ matrix.platform == 'android' }}
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true
- name: Web dependencies
if: ${{ matrix.platform == 'web' }}
uses: mymindstorm/setup-emsdk@v13
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Setup MinGW for Windows/MinGW build
if: ${{ matrix.compiler == 'mingw' }}
uses: egor-tensin/setup-mingw@v2
with:
version: 12.2.0
- name: Install dependencies
if: ${{ matrix.runner == 'ubuntu-20.04' }}
run: |
sudo apt-get update -qq
sudo apt-get install -qqq build-essential pkg-config cmake ninja-build
- name: Configure godot-cpp (Linux)
if: ${{ matrix.runner == 'ubuntu-20.04' }}
run:
cmake -DCMAKE_BUILD_TYPE=Release ${{ matrix.extra_config}} -GNinja .
- name: Configure godot-cpp (Windows)
if: ${{ matrix.runner == 'windows-2019' }}
run:
cmake -DCMAKE_BUILD_TYPE=Release ${{matrix.extra_config}} -G"Visual Studio 16 2019" .
- name: Build godot-cpp
run:
cmake --build . -j $(nproc) --verbose
- name: Configure godot-cpp/test (Linux)
if: ${{ matrix.runner == 'ubuntu-20.04' }}
run:
cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -GNinja .
- name: Configure godot-cpp/test (Windows)
if: ${{ matrix.compiler == 'msvc' }}
run:
cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -G"Visual Studio 16 2019" .
- name: Build godot-cpp/test
run: |
cmake --build . -j $(nproc) --verbose