Skip to content

Commit 7ebfe53

Browse files
authored
Merge pull request #482 from HyperloopUPV-H8/fix/FW-170-github-actions-not-compiling
[WIP] [FW-170] Fix github actions not compiling
2 parents 2e7caeb + 735393c commit 7ebfe53

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM ubuntu:24.04
22

3+
ENV PATH="$PATH:/opt/st/stm32cubeclt_1.16.0/GNU-tools-for-STM32/bin:/opt/st/stm32cubeclt_1.16.0/CMake/bin"
4+
35
# Install git, git-lfs, pip and colorama, and create workspace directory
46
RUN apt-get update && apt-get -y install git git-lfs python3-colorama cmake g++ build-essential && \
57
git lfs install
6-
8+
79
# Install cubeclt
810
RUN mkdir /temp && cd /temp && git clone https://github.com/HyperloopUPV-H8/cubeclt.git && \
911
cd cubeclt && git lfs pull && chmod +x cubeclt_1.16.0_installer.sh && \
10-
echo | LICENSE_ALREADY_ACCEPTED=1 ./cubeclt_1.16.0_installer.sh
12+
echo | LICENSE_ALREADY_ACCEPTED=1 ./cubeclt_1.16.0_installer.sh

.github/workflows/c-cpp.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
matrix:
1414
build_type: [hardware,simulator]
1515
runs-on: ubuntu-24.04
16+
container:
17+
image: jmaralo/hyperloop-upv-firmware:0.2.0
1618
steps:
17-
- uses: actions/checkout@v3
18-
- uses: carlosperate/arm-none-eabi-gcc-action@v1
19-
- run: arm-none-eabi-gcc --version
19+
- name: Clone ST-LIB
20+
uses: actions/checkout@v3
2021
- name: Build
2122
run: ./tools/build.sh ${{matrix.build_type}}
2223
## the following is because of this known limitation
@@ -32,17 +33,4 @@ jobs:
3233
retention-days: 1
3334
#this is because hardware build doesnot create the
3435
# test executable
35-
continue-on-error: true
36-
Run-Tests:
37-
name: Run Simulator tests
38-
needs: build
39-
runs-on: ubuntu-24.04
40-
steps:
41-
- uses: actions/checkout@v3
42-
- name: Download test binary compressed
43-
uses: actions/download-artifact@v4
44-
with:
45-
name: stlib_test
46-
- run: tar -xvf test_files.tar
47-
- name: Run test
48-
run: ./tools/run_sim_tests.sh
36+
continue-on-error: true

0 commit comments

Comments
 (0)