This commit is contained in:
@@ -36,22 +36,31 @@ jobs:
|
|||||||
uses: jakoch/install-vulkan-sdk-action@v1
|
uses: jakoch/install-vulkan-sdk-action@v1
|
||||||
|
|
||||||
- name: Configure debug
|
- name: Configure debug
|
||||||
run: cd scripts; CPM_SOURCE_CACHE="~/.cache/CPM/" ./configure-debug.sh
|
run: |
|
||||||
|
mkdir -p build/debug
|
||||||
|
cd build/debug
|
||||||
|
CPM_SOURCE_CACHE="~/.cache/CPM/" cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
|
||||||
- name: Configure release
|
- name: Configure release
|
||||||
run: cd scripts; CPM_SOURCE_CACHE="~/.cache/CPM/" ./configure-release.sh
|
run: |
|
||||||
|
mkdir -p build/release
|
||||||
|
cd build/release
|
||||||
|
CPM_SOURCE_CACHE="~/.cache/CPM/" cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
- name: Configure RelWithDeb
|
- name: Configure RelWithDeb
|
||||||
run: cd scripts; CPM_SOURCE_CACHE="~/.cache/CPM/" ./configure-relwithdeb.sh
|
run: |
|
||||||
|
mkdir -p build/relwithdeb
|
||||||
|
cd build/relwithdeb
|
||||||
|
CPM_SOURCE_CACHE="~/.cache/CPM/" cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
|
|
||||||
- name: Build debug
|
- name: Build debug
|
||||||
run: cd scripts; ./build-debug.sh
|
run: cd build/debug && ninja
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: cd scripts; ./build-release.sh
|
run: cd build/release && ninja
|
||||||
|
|
||||||
- name: Build Release with debug info
|
- name: Build Release with debug info
|
||||||
run: cd scripts; ./build-relwithdeb.sh
|
run: cd build/relwithdeb && ninja
|
||||||
|
|
||||||
- name: Copy assets
|
- name: Copy assets
|
||||||
run: |-
|
run: |-
|
||||||
|
|||||||
134
.vscode/tasks.json
vendored
134
.vscode/tasks.json
vendored
@@ -4,7 +4,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Configure: Debug",
|
"label": "Configure: Debug",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./configure-debug.sh",
|
"command": "./scripts/build_script configure -b debug",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' configure -b debug"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"isDefault": false
|
"isDefault": false
|
||||||
},
|
},
|
||||||
@@ -14,7 +25,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Build: Debug",
|
"label": "Build: Debug",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./build-debug.sh",
|
"command": "./scripts/build_script build -b debug",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' build -b debug"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@@ -25,7 +47,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Configure: Relwithdeb",
|
"label": "Configure: Relwithdeb",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./configure-relwithdeb.sh",
|
"command": "./scripts/build_script configure -b relwithdeb",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' configure -b relwithdeb"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"isDefault": false
|
"isDefault": false
|
||||||
},
|
},
|
||||||
@@ -35,7 +68,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Build: Relwithdeb",
|
"label": "Build: Relwithdeb",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./build-relwithdeb.sh",
|
"command": "./scripts/build_script build -b relwithdeb",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' build -b relwithdeb"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@@ -43,10 +87,64 @@
|
|||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"detail": "Build Release with debug info"
|
"detail": "Build Release with debug info"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Configure: Release",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./scripts/build_script configure -b release",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' configure -b release"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"isDefault": false
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"detail": "Configure Release"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build: Release",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./scripts/build_script build -b release",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' build -b release"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"detail": "Build Release"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Clean: Debug",
|
"label": "Clean: Debug",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd build/debug; ninja clean",
|
"command": "./scripts/build_script clean -b debug",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' clean -b debug"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"isDefault": false
|
"isDefault": false
|
||||||
},
|
},
|
||||||
@@ -55,7 +153,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Build: All",
|
"label": "Build: All",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./build.sh",
|
"command": "./scripts/build_script build",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' build"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@@ -66,7 +175,18 @@
|
|||||||
{
|
{
|
||||||
"label": "Clean: All",
|
"label": "Clean: All",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cd scripts; ./clean.sh",
|
"command": "./scripts/build_script clean",
|
||||||
|
"windows": {
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-Command",
|
||||||
|
"& './scripts/build_script.exe' clean"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"isDefault": false
|
"isDefault": false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ set(CMAKE_CXX_STANDARD 20)
|
|||||||
|
|
||||||
# Include the libary
|
# Include the libary
|
||||||
add_subdirectory(oatmeal)
|
add_subdirectory(oatmeal)
|
||||||
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
|
|
||||||
file(GLOB CMAKE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/*.cmake")
|
file(GLOB CMAKE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/*.cmake")
|
||||||
foreach(cmake_file ${CMAKE_FILES})
|
foreach(cmake_file ${CMAKE_FILES})
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p debug
|
|
||||||
cd debug
|
|
||||||
ninja
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p release
|
|
||||||
cd release
|
|
||||||
ninja
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p relwithdeb
|
|
||||||
cd relwithdeb
|
|
||||||
ninja
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd ../
|
|
||||||
mkdir -p build
|
|
||||||
cd build || exit
|
|
||||||
mkdir -p debug
|
|
||||||
mkdir -p release
|
|
||||||
mkdir -p relwithdeb
|
|
||||||
|
|
||||||
cd debug || exit
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Debug &
|
|
||||||
cd ../
|
|
||||||
cd release || exit
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Release &
|
|
||||||
cd ../
|
|
||||||
cd relwithdeb || exit
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo &
|
|
||||||
cd ../
|
|
||||||
|
|
||||||
wait
|
|
||||||
|
|
||||||
cd debug || exit
|
|
||||||
ninja &
|
|
||||||
cd ../
|
|
||||||
cd release || exit
|
|
||||||
ninja &
|
|
||||||
cd ../
|
|
||||||
cd relwithdeb || exit
|
|
||||||
ninja &
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
wait
|
|
||||||
BIN
scripts/build_script
Normal file
BIN
scripts/build_script
Normal file
Binary file not shown.
BIN
scripts/build_script.exe
Normal file
BIN
scripts/build_script.exe
Normal file
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd build/debug || exit
|
|
||||||
ninja clean
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd release || exit
|
|
||||||
ninja clean
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
cd relwithdeb || exit
|
|
||||||
ninja clean
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p debug
|
|
||||||
cd debug
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p release
|
|
||||||
cd release
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Release
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir -p relwithdeb
|
|
||||||
cd relwithdeb
|
|
||||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
||||||
Reference in New Issue
Block a user