Skip to content

Commit b3a9efc

Browse files
authored
Merge pull request #24 from lambda-sh/dev
lambda-cpp -> lambda-rs
2 parents c72137c + d3aa965 commit b3a9efc

177 files changed

Lines changed: 5387 additions & 24537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: compile_and_test
1+
name: compile & test lambda-rs
22

33
on:
44
push:
5-
branches: [ main, dev ]
5+
branches: [ main, dev, vmarcella/lambda-rs ]
66

77
pull_request:
8-
branches: [ main, dev ]
8+
branches: [ main, dev, vmarcella/lambda-rs ]
99

1010
workflow_dispatch:
1111

@@ -15,25 +15,12 @@ defaults:
1515

1616
jobs:
1717
build_and_test:
18-
name: Build & test Lambda on ${{ matrix.os }} with ${{ matrix.cpp-compiler }}.
18+
name: Build lambda-rs on ${{ matrix.os }} with ${{ matrix.rustup-toolchain }}.
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
include:
23-
- os: ubuntu-latest
24-
c-compiler: gcc-10
25-
cpp-compiler: g++-10
26-
target: Linux
27-
28-
#- os: macos-latest
29-
#c-compiler: gcc-11
30-
#cpp-compiler: g++-11
31-
#target: Macos
32-
33-
- os: windows-latest
34-
cpp-compiler: cl
35-
c-compiler: cl
36-
target: Windows
22+
os: [ubuntu-latest, windows-latest, macos-latest]
23+
rustup-toolchain: ["stable"]
3724

3825
steps:
3926
- name: Checkout Repository
@@ -42,29 +29,29 @@ jobs:
4229
- name: Run the projects setup.
4330
run: ./scripts/setup.sh --within-ci true
4431

45-
- name: Obtain Randr for glfw & Ninja for building on Ubuntu.
32+
- name: Obtain Xorg for building on Ubuntu.
4633
if: ${{ matrix.os == 'ubuntu-latest' }}
47-
run: sudo apt-get update && sudo apt-get install xorg-dev ninja-build
34+
run: sudo apt-get update && sudo apt-get install xorg-dev
4835

4936
- name: Add msbuild to PATH
5037
if: ${{ matrix.os == 'windows-latest' }}
5138
uses: microsoft/setup-msbuild@v1.0.2
5239

53-
- name: Obtain Ninja & gcc for building on MacOS.
54-
if: ${{ matrix.os == 'macos-latest' }}
55-
run: brew install ninja gcc
40+
- name: Install ninja 1.10.2 on windows.
41+
if: ${{ matrix.os == 'windows-latest' }}
42+
run: choco install ninja
43+
44+
- name: Obtain rust toolchain for ${{ matrix.rustup-toolchain }}
45+
run: |
46+
rustup toolchain install ${{ matrix.rustup-toolchain }}
47+
rustup default ${{ matrix.rustup-toolchain }}
5648
57-
- name: Compile a release build of lambda
58-
run: ./scripts/compile_and_test.sh \
59-
--build Release \
60-
--cpp-compiler ${{ matrix.cpp-compiler }} \
61-
--c-compiler ${{ matrix.c-compiler }} \
62-
--os ${{ matrix.target }} \
63-
--cores 2
49+
- name: Build Lambda & other default workspace members.
50+
run: cargo build
6451

6552
- uses: actions/setup-ruby@v1
6653
- name: Send Webhook Notification for build status.
67-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
54+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/vmarcella/lambda-rs' }}
6855
env:
6956
JOB_STATUS: ${{ job.status }}
7057
WEBHOOK_URL: ${{ secrets.LAMBDA_BUILD_WEBHOOK }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Rust output directories
2+
target
3+
14
# Visual studio build config
25
.vs
36

.gitmodules

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
[submodule "engine/vendor/glfw"]
2-
path = lambda/vendor/glfw
1+
[submodule "archive/lambda_cpp/vendor/glfw"]
2+
path = archive/lambda_cpp/vendor/glfw
33
url = https://github.com/glfw/glfw
4-
[submodule "engine/vendor/imgui"]
5-
path = lambda/vendor/imgui
4+
[submodule "archive/lambda_cpp/vendor/imgui"]
5+
path = archive/lambda_cpp/vendor/imgui
66
url = https://github.com/C3NZ/imgui
7-
[submodule "engine/vendor/glm"]
8-
path = lambda/vendor/glm
7+
[submodule "archive/lambda_cpp/vendor/glm"]
8+
path = archive/lambda_cpp/vendor/glm
99
url = https://github.com/g-truc/glm
1010
[submodule "docs"]
1111
path = docs
1212
url = https://github.com/C3NZ/game-engine-docs.git
13-
[submodule "engine/vendor/spdlog"]
14-
path = lambda/vendor/spdlog
13+
[submodule "archive/lambda_cpp/vendor/spdlog"]
14+
path = archive/lambda_cpp/vendor/spdlog
1515
url = https://github.com/gabime/spdlog.git
16-
[submodule "engine/vendor/readerwriterqueue"]
17-
path = lambda/vendor/readerwriterqueue
16+
[submodule "archive/lambda_cpp/vendor/readerwriterqueue"]
17+
path = archive/lambda_cpp/vendor/readerwriterqueue
1818
url = https://github.com/cameron314/readerwriterqueue
19-
[submodule "engine/vendor/concurrentqueue"]
20-
path = lambda/vendor/concurrentqueue
19+
[submodule "archive/lambda_cpp/vendor/concurrentqueue"]
20+
path = archive/lambda_cpp/vendor/concurrentqueue
2121
url = https://github.com/cameron314/concurrentqueue
22-
[submodule "engine/vendor/googletest"]
23-
path = lambda/vendor/googletest
22+
[submodule "archive/lambda_cpp/vendor/googletest"]
23+
path = archive/lambda_cpp/vendor/googletest
2424
url = https://github.com/google/googletest
2525
[submodule "lambda-sh"]
2626
path = lambda-sh

.ignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
docs
2-
lambda/vendor
2+
archive/lambda_cpp/vendor
33
\.git
4+
target

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ repos:
99
rev: 0.6.0
1010
hooks:
1111
- id: cpplint
12-
name: Lint-engine
12+
name: C++ Linter
1313
args: [
1414
"--filter=-legal/copyright,-build/include,-build/c++11",
1515
]
16+
- repo: local
17+
hooks:
18+
- id: fmt
19+
args: []
20+
entry: rustup run nightly cargo fmt --
21+
language: system
22+
name: Linting for lambda-rs & tools.
23+
types: [rust]

.vscode/c_cpp_properties.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "(Windows) Launch",
8+
"name": "(Windows) Debug Demo",
99
"type": "cppvsdbg",
1010
"request": "launch",
11-
"program": "enter program name, for example ${workspaceFolder}/a.exe",
11+
"program": "${workspaceRoot}/target/debug/demo.exe",
1212
"args": [],
1313
"stopAtEntry": false,
1414
"cwd": "${workspaceFolder}",
15-
"environment": [],
16-
"console": "externalTerminal"
15+
"externalConsole": true
16+
},
17+
{
18+
"name": "(MacOS/Linux) Debug Demo",
19+
"type": "lldb",
20+
"request": "launch",
21+
"program": "${workspaceRoot}/target/debug/demo",
22+
"cwd": "${workspaceFolder}"
1723
}
1824
]
1925
}

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"*.tcc": "cpp",
66
"chrono": "cpp",
77
"string_view": "cpp"
8-
}
8+
},
9+
"vim.autoindent": false,
10+
"editor.tabSize": 2,
11+
"editor.detectIndentation": false,
12+
"rust-analyzer.inlayHints.typeHints": false,
13+
"rust-analyzer.inlayHints.chainingHints": false
914
}

.vscode/tasks.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type":"shell",
6+
"label": "build all",
7+
"detail": "Builds all targets within the lambda repo",
8+
"command": "cargo",
9+
"args": [
10+
"build"
11+
],
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
}
16+
},
17+
{
18+
"type":"shell",
19+
"label": "run lambda demo",
20+
"detail": "Builds & Runs the lambda demo application",
21+
"command": "cargo",
22+
"args": [
23+
"run"
24+
],
25+
"dependsOn":["build all"],
26+
"group": "none"
27+
}
28+
]
29+
}

CMakeLists.txt

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)