Skip to content

Commit

Permalink
Import Update 3
Browse files Browse the repository at this point in the history
added getNodes functions
every node file should now be parsable completely
and every use case works
-> quality of life functions might be missing

split up tests
added more tests
every import function is tested

tests run on gcc aswell

added test ci
have to figure out dependencies
  • Loading branch information
gk646 committed May 9, 2024
1 parent 6dd8b53 commit 67c21e5
Show file tree
Hide file tree
Showing 11 changed files with 328 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
ColumnLimit: 110
ColumnLimit: 117
CompactNamespaces: false
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CMake on multiple platforms

on:


jobs:
build-and-test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++

steps:
- uses: actions/checkout@v4

- name: Cache CMake builds
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/build
key: ${{ runner.os }}-build-${{ hashFiles('**/CMakeLists.txt', '**/*.cpp', '**/*.h') }}
restore-keys: |
${{ runner.os }}-build-
- name: Configure CMake
run: |
cmake -B build \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-S .
working-directory: ${{ github.workspace }}

- name: Build
run: cmake --build build --config ${{ matrix.build_type }}
working-directory: ${{ github.workspace }}

- name: Run Tests
run: ctest -C ${{ matrix.build_type }} --output-on-failure
working-directory: ${{ github.workspace }}/build

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Test Results
path: ${{ github.workspace }}/build/Testing/**/*.xml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake-*
/cmake-*
.idea
saves
test/res/__GEN1__.rn
Expand Down
2 changes: 1 addition & 1 deletion cmake/LoadLocalLibs.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(DEPENDENCIES_PATH "C:/Users/gk646/Documents/Libaries")
set(DEPENDENCIES_PATH "/mnt/c/Users/gk646/Documents/Libaries")

include_directories(
"${DEPENDENCIES_PATH}/raylib-master/src"
Expand Down
2 changes: 1 addition & 1 deletion src/raynodes/application/context/impl/ContextPersist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ bool Persist::loadFromFile(EditorContext& ec) {

const auto* path = openedFilePath.c_str();

fopen_s(&file, path, "rb");
file = fopen( path, "rb");

if (file == nullptr) {
fprintf(stderr, "Unable to open file %s\n", path);
Expand Down
Loading

0 comments on commit 67c21e5

Please sign in to comment.