-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (33 loc) · 1.16 KB
/
cmake-multi-platform.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: GDExtension CMake
on: [push, pull_request]
jobs:
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/setup-python@v2
# with:
# python-version: "3.x"
# architecture: "x64"
# - uses: ilammy/msvc-dev-cmd@v1
# - name: build-windows-latest
# run: pip3 install --user scons
build-linux:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
#- name: Install dependencies
# run: pip install --user scons
- name: cmake - delete cache (linux | debug | gcc)
run: rm -rf ${{ github.workspace }}/.out/*
- name: cmake - configure (linux | debug | gcc)
run: >
cmake -B ${{ github.workspace }}/.out
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_C_COMPILER=gcc
-DCMAKE_BUILD_TYPE=Debug
-S ${{ github.workspace }}
-G Ninja
- name: rebuild - clean (linux)
run: cmake --build ${{ github.workspace }}/.out --config Debug --target clean --parallel 48
- name: rebuild - build (linux)
run: cmake --build ${{ github.workspace }}/.out --config Debug --target roguelite --parallel 48