Skip to content

Commit

Permalink
updated file format to use unix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
enetheru committed Mar 11, 2024
1 parent 3ef87c2 commit 8a5d76d
Showing 1 changed file with 106 additions and 106 deletions.
212 changes: 106 additions & 106 deletions .github/workflows/ci-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,106 +1,106 @@
name: Continuous Integration (cmake)
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
- runner: ubuntu-20.04
icon: 🐧
platform: linux
arch: x86_64
compiler: gcc
extra_label: double
extra_config: -DFLOAT_PRECISION:STRING=double
- 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
name: Continuous Integration (cmake)
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
- runner: ubuntu-20.04
icon: 🐧
platform: linux
arch: x86_64
compiler: gcc
extra_label: double
extra_config: -DFLOAT_PRECISION:STRING=double
- 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

0 comments on commit 8a5d76d

Please sign in to comment.