Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cproject
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@
</storageModule>
<storageModule moduleId="refreshScope"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cproject>
</cproject>
15 changes: 0 additions & 15 deletions .devcontainer/Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions .devcontainer/devcontainer.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
git config --global --add safe.directory '*'
git submodule update --init --depth 1
./deps/ST-LIB/tools/init-submodules.sh
./deps/ST-LIB/tools/init-submodules.sh
shell: bash

- name: Setup Python environment
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/format-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Format Checks
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- '**.cpp'
- '**.hpp'
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Run Simulator Tests

on:
workflow_dispatch:
pull_request:
branches: [ main ]

concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
packages: read

container:
image: ghcr.io/hyperloop-upv/hyperloop-firmware-toolchain:latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 1

- name: Init submodules
run: |
git config --global --add safe.directory '*'
git submodule update --init --depth 1
./deps/ST-LIB/tools/init-submodules.sh
shell: bash

- name: Cache simulator deps
uses: actions/cache@v4
with:
path: out/build/simulator/_deps
key: template-simulator-deps-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'deps/ST-LIB/CMakeLists.txt', 'deps/ST-LIB/Tests/CMakeLists.txt') }}
restore-keys: |
template-simulator-deps-${{ runner.os }}-

- name: Configure (CMake)
run: |
cmake --preset simulator
shell: bash

- name: Build
run: |
cmake --build --preset simulator
shell: bash

- name: Run tests (ctest)
run: |
ctest --preset simulator-all
shell: bash

- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: simulator-test-reports
path: |
out/build/simulator/Testing/Temporary/LastTest.log
out/build/simulator/deps/ST-LIB/Testing/Temporary/LastTest.log
retention-days: 7
if-no-files-found: ignore
1 change: 0 additions & 1 deletion .mxproject
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ SourcePath#0=..\LWIP\App
SourcePath#1=..\LWIP\Target
SourcePath#2=..\Core\Src
SourceFiles=;

8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
files: ^(Core/|tools/).*
exclude: ^(Core/Inc/Code_generation/Packet_generation/(DataTemplate\.hpp|OrderTemplate\.hpp)|tools/binary_metadata_template\.cpp)$
types_or:
- c
- c++
exclude: ^Core/Inc/Code_generation/Packet_generation/.*Template\.hpp$|^tools/binary_metadata_template\.cpp$
2 changes: 1 addition & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
}
],
"version": 4
}
}
Loading