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
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM ubuntu:24.04

ENV PATH="$PATH:/opt/st/stm32cubeclt_1.16.0/GNU-tools-for-STM32/bin:/opt/st/stm32cubeclt_1.16.0/CMake/bin"

# Install git, git-lfs, pip and colorama, and create workspace directory
RUN apt-get update && apt-get -y install git git-lfs python3-colorama cmake g++ build-essential && \
git lfs install

# Install cubeclt
RUN mkdir /temp && cd /temp && git clone https://github.com/HyperloopUPV-H8/cubeclt.git && \
cd cubeclt && git lfs pull && chmod +x cubeclt_1.16.0_installer.sh && \
echo | LICENSE_ALREADY_ACCEPTED=1 ./cubeclt_1.16.0_installer.sh
echo | LICENSE_ALREADY_ACCEPTED=1 ./cubeclt_1.16.0_installer.sh
22 changes: 5 additions & 17 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
matrix:
build_type: [hardware,simulator]
runs-on: ubuntu-24.04
container:
image: jmaralo/hyperloop-upv-firmware:0.2.0
steps:
- uses: actions/checkout@v3
- uses: carlosperate/arm-none-eabi-gcc-action@v1
- run: arm-none-eabi-gcc --version
- name: Clone ST-LIB
uses: actions/checkout@v3
- name: Build
run: ./tools/build.sh ${{matrix.build_type}}
## the following is because of this known limitation
Expand All @@ -32,17 +33,4 @@ jobs:
retention-days: 1
#this is because hardware build doesnot create the
# test executable
continue-on-error: true
Run-Tests:
name: Run Simulator tests
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Download test binary compressed
uses: actions/download-artifact@v4
with:
name: stlib_test
- run: tar -xvf test_files.tar
- name: Run test
run: ./tools/run_sim_tests.sh
continue-on-error: true
Loading