From a6eb23ff73c0737de043eeacf5ed2abd63fff9dc Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:33:39 +0100 Subject: [PATCH 01/29] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 00000000..c62bcaa3 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,25 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ,"test_automated_build"] + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + matrix: + build_type: [Debug, Release] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build STLIB + uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck From ce0e6f42a28c3e9e9092fb59ae7a72979a98951b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:34:28 +0100 Subject: [PATCH 02/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c62bcaa3..31c9b3cd 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,6 +7,7 @@ on: branches: [ "main" ] jobs: + uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 build: strategy: matrix: @@ -16,7 +17,6 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build STLIB - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 - name: make run: make - name: make check From 7b62495cebe89073086ef6fcfe79785c72c2f3bd Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:38:19 +0100 Subject: [PATCH 03/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 31c9b3cd..2506900b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,19 +7,15 @@ on: branches: [ "main" ] jobs: - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 - build: + build_st_lib: + uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 strategy: matrix: build_type: [Debug, Release] + build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - - name: Build STLIB - - name: make - run: make - - name: make check - run: make check - - name: make distcheck - run: make distcheck + - name: check STLIB + run: | + ls /opt/STLIB From 61dd1d70c742f2779038b5b1d00ab81e735d9d0b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:00:06 +0100 Subject: [PATCH 04/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 2506900b..19b0d211 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -9,9 +9,6 @@ on: jobs: build_st_lib: uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 - strategy: - matrix: - build_type: [Debug, Release] build: runs-on: ubuntu-latest steps: From ade519ab8e9431274c13ba6b818a4c1b95c30ea0 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:08:58 +0100 Subject: [PATCH 05/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 19b0d211..eb97c9c3 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -9,6 +9,8 @@ on: jobs: build_st_lib: uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 + with: + repository: HyperloopUPV-H8/ST-LIB build: runs-on: ubuntu-latest steps: From f60707d8bbd84d095100221287b95bc4d7da5487 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:14:19 +0100 Subject: [PATCH 06/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index eb97c9c3..84973aad 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,7 +8,7 @@ on: jobs: build_st_lib: - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 + uses: .github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 with: repository: HyperloopUPV-H8/ST-LIB build: From dd5117a402dbb094531c843c7e87182558dfbcb1 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:28:51 +0100 Subject: [PATCH 07/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 84973aad..19b0d211 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,9 +8,7 @@ on: jobs: build_st_lib: - uses: .github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 - with: - repository: HyperloopUPV-H8/ST-LIB + uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 build: runs-on: ubuntu-latest steps: From ae7843feecd46714cfba787c0b23c6280c35303b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:29:46 +0100 Subject: [PATCH 08/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 19b0d211..f4fc6290 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -11,6 +11,7 @@ jobs: uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 build: runs-on: ubuntu-latest + needs: build_st_lib steps: - uses: actions/checkout@v3 - name: check STLIB From c7bce8b906bd3cb9b76f8134dc8e43b6553f0e7a Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:34:55 +0100 Subject: [PATCH 09/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index f4fc6290..042387a5 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,3 +17,5 @@ jobs: - name: check STLIB run: | ls /opt/STLIB + - name: Build project + run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug From 20fdf04fe8218330148bf2252526eb6d96be17e9 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:36:15 +0100 Subject: [PATCH 10/29] update pointing commit --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 042387a5..66662eb6 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,7 +8,7 @@ on: jobs: build_st_lib: - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@d5361b8a7ed88a0f360a3c319f934e89f5b687b4 + uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 build: runs-on: ubuntu-latest needs: build_st_lib From 52a8bd91783891f1761e2c86a5d198b4d251cf9e Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:49:18 +0100 Subject: [PATCH 11/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 66662eb6..a0c70ea1 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,7 +8,13 @@ on: jobs: build_st_lib: - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 + runs-on: ubuntu-latest + #uses: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 + steps: + - uses: actions/checkout@v3 + with: + repository: HyperloopUPV-H8/ST-LIB + build: runs-on: ubuntu-latest needs: build_st_lib From debd050b3ea557cd0bafa29cb9c1da2ff46d4c24 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:50:26 +0100 Subject: [PATCH 12/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a0c70ea1..6efa89d2 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,7 +14,8 @@ jobs: - uses: actions/checkout@v3 with: repository: HyperloopUPV-H8/ST-LIB - + - run: | + ls . build: runs-on: ubuntu-latest needs: build_st_lib From b1d367f54b4ec2b153ae6bd16a674b90aae57f4b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:51:44 +0100 Subject: [PATCH 13/29] update ref --- .github/workflows/c-cpp.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6efa89d2..6d62cb87 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v3 with: repository: HyperloopUPV-H8/ST-LIB + ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 - run: | ls . build: From df9fc30dfc8fce856c3326b6fdd713d41045734a Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:53:08 +0100 Subject: [PATCH 14/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6d62cb87..5306ef2d 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -9,7 +9,6 @@ on: jobs: build_st_lib: runs-on: ubuntu-latest - #uses: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 steps: - uses: actions/checkout@v3 with: @@ -17,6 +16,7 @@ jobs: ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 - run: | ls . + - run: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 build: runs-on: ubuntu-latest needs: build_st_lib From c94fc4f16f7243ec6e506da417c5dce6d480cb7e Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:54:03 +0100 Subject: [PATCH 15/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 5306ef2d..085474ee 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -16,7 +16,7 @@ jobs: ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 - run: | ls . - - run: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 + - uses: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 build: runs-on: ubuntu-latest needs: build_st_lib From b78ef040df59d641e0d19b9920e5c88c1d0add7b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:54:40 +0100 Subject: [PATCH 16/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 085474ee..f2584d06 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -16,7 +16,7 @@ jobs: ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 - run: | ls . - - uses: .github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 + - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 build: runs-on: ubuntu-latest needs: build_st_lib From 855235b068855d3d5bc8b1fc23fd4bd48891276f Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:58:51 +0100 Subject: [PATCH 17/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index f2584d06..cf055e4a 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,9 +14,23 @@ jobs: with: repository: HyperloopUPV-H8/ST-LIB ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 - - run: | - ls . - - uses: HyperloopUPV-H8/ST-LIB/.github/workflows/c-cpp.yml@9a5647c0018067351c4c6cfc52dfdc500e56d347 + - uses: carlosperate/arm-none-eabi-gcc-action@v1 + - run: arm-none-eabi-gcc --version + - name: Install dependencies + run: pip install GitPython colorama + - name: Set up ST-LIB + run: ls && cp -r ../* /opt/ + - name: Display ST-LIB + working-directory: /opt/ST-LIB/ + run: ls + - name: Invoking python + working-directory: /opt/ST-LIB/tools + run: python3 build.py -eth ON -t NUCLEO -bb ${{matrix.build_type}} + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: library + path: /opt/ST-LIB/build/${{matrix.build_type}}/lib/libst-lib.a build: runs-on: ubuntu-latest needs: build_st_lib From f84c35d17a02abd7dd95480768cab8a5645fe67a Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:00:46 +0100 Subject: [PATCH 18/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index cf055e4a..29be8eeb 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -20,6 +20,8 @@ jobs: run: pip install GitPython colorama - name: Set up ST-LIB run: ls && cp -r ../* /opt/ + + - run: echo pwd - name: Display ST-LIB working-directory: /opt/ST-LIB/ run: ls From 237d99a187cac7f446ae4f35f06bfd6f6edae193 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:02:39 +0100 Subject: [PATCH 19/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 29be8eeb..6368a548 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -23,8 +23,8 @@ jobs: - run: echo pwd - name: Display ST-LIB - working-directory: /opt/ST-LIB/ - run: ls + #working-directory: /opt/ST-LIB/ + run: ls /opt/ - name: Invoking python working-directory: /opt/ST-LIB/tools run: python3 build.py -eth ON -t NUCLEO -bb ${{matrix.build_type}} From ec9013e115195f2da5e900f96452943a28cdff6b Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:30:00 +0100 Subject: [PATCH 20/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6368a548..b896f246 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -19,12 +19,11 @@ jobs: - name: Install dependencies run: pip install GitPython colorama - name: Set up ST-LIB - run: ls && cp -r ../* /opt/ - - - run: echo pwd + run: ls && cp -r ../* /opt/ && mv /opt/template-project /opt/ST-LIB + - name: Display ST-LIB - #working-directory: /opt/ST-LIB/ - run: ls /opt/ + working-directory: /opt/ST-LIB/ + run: ls - name: Invoking python working-directory: /opt/ST-LIB/tools run: python3 build.py -eth ON -t NUCLEO -bb ${{matrix.build_type}} From e142a3795988187363d3a9613830baf8cac1a34c Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:32:40 +0100 Subject: [PATCH 21/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index b896f246..a537f9be 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -26,12 +26,12 @@ jobs: run: ls - name: Invoking python working-directory: /opt/ST-LIB/tools - run: python3 build.py -eth ON -t NUCLEO -bb ${{matrix.build_type}} + run: python3 build.py -eth ON -t NUCLEO -bb Debug - name: Upload build artifact uses: actions/upload-artifact@v3 with: name: library - path: /opt/ST-LIB/build/${{matrix.build_type}}/lib/libst-lib.a + path: /opt/ST-LIB/build/Debug/lib/libst-lib.a build: runs-on: ubuntu-latest needs: build_st_lib From f7399bcf4182f4e0b12d87b35f23b0e9e0eeddab Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:03:46 +0100 Subject: [PATCH 22/29] Consume artifact --- .github/workflows/c-cpp.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a537f9be..bfdd54c9 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -37,8 +37,11 @@ jobs: needs: build_st_lib steps: - uses: actions/checkout@v3 - - name: check STLIB - run: | - ls /opt/STLIB + - name: Create output folder + run: mkdir /opt/ST-LIB/build/Debug/lib + - name: Download ST-LIB artifactory + uses: actions/download-artifact@v3 + with: + name: library - name: Build project run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug From a009199caf84939173035c51b62ed3012dde30cb Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:12:25 +0100 Subject: [PATCH 23/29] mkdir -p --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index bfdd54c9..2e3ec5da 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -38,7 +38,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Create output folder - run: mkdir /opt/ST-LIB/build/Debug/lib + run: mkdir -p /opt/ST-LIB/build/Debug/lib - name: Download ST-LIB artifactory uses: actions/download-artifact@v3 with: From f4f82753d502247d94ed61ba221614868edf6b2f Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:18:39 +0100 Subject: [PATCH 24/29] fix dependecies --- .github/workflows/c-cpp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 2e3ec5da..1ee7c383 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -43,5 +43,10 @@ jobs: uses: actions/download-artifact@v3 with: name: library + - name: Install compiler + uses: carlosperate/arm-none-eabi-gcc-action@v1 + - run: arm-none-eabi-gcc --version + - name: Install python dependencies + run: pip install GitPython colorama - name: Build project run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug From 55e1d237c0fb916045ac6f11733469f467f4e813 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:27:43 +0100 Subject: [PATCH 25/29] stop using build.py --- .github/workflows/c-cpp.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 1ee7c383..67bbde8b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -48,5 +48,9 @@ jobs: - run: arm-none-eabi-gcc --version - name: Install python dependencies run: pip install GitPython colorama - - name: Build project - run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug + - name: Configure CMake ## because we only download the library we cannot call the build script as usual + ## we have to invoke cmake + run: cmake -B build/Debug -DRELEASE=FALSE -DNUCLEO=TRUE + - name: make + run: make -C build/Debug + - From 7427051c7bd341ace55fba270140bf5bb1669185 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:28:11 +0100 Subject: [PATCH 26/29] fix yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 67bbde8b..f5d66ad8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -53,4 +53,4 @@ jobs: run: cmake -B build/Debug -DRELEASE=FALSE -DNUCLEO=TRUE - name: make run: make -C build/Debug - - + From 64b90b6175aeb7d9650b34b4623baf7fe6ca55c2 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:35:39 +0100 Subject: [PATCH 27/29] new approach --- .github/workflows/c-cpp.yml | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index f5d66ad8..1827fd32 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,7 +7,7 @@ on: branches: [ "main" ] jobs: - build_st_lib: + build_template_project: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -20,37 +20,8 @@ jobs: run: pip install GitPython colorama - name: Set up ST-LIB run: ls && cp -r ../* /opt/ && mv /opt/template-project /opt/ST-LIB - - name: Display ST-LIB - working-directory: /opt/ST-LIB/ - run: ls + run: ls /opt/ST-LIB - name: Invoking python - working-directory: /opt/ST-LIB/tools - run: python3 build.py -eth ON -t NUCLEO -bb Debug - - name: Upload build artifact - uses: actions/upload-artifact@v3 - with: - name: library - path: /opt/ST-LIB/build/Debug/lib/libst-lib.a - build: - runs-on: ubuntu-latest - needs: build_st_lib - steps: - - uses: actions/checkout@v3 - - name: Create output folder - run: mkdir -p /opt/ST-LIB/build/Debug/lib - - name: Download ST-LIB artifactory - uses: actions/download-artifact@v3 - with: - name: library - - name: Install compiler - uses: carlosperate/arm-none-eabi-gcc-action@v1 - - run: arm-none-eabi-gcc --version - - name: Install python dependencies - run: pip install GitPython colorama - - name: Configure CMake ## because we only download the library we cannot call the build script as usual - ## we have to invoke cmake - run: cmake -B build/Debug -DRELEASE=FALSE -DNUCLEO=TRUE - - name: make - run: make -C build/Debug - + run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug + From c617379840dd660d446382d1f00f785175f7620a Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:41:58 +0100 Subject: [PATCH 28/29] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 1827fd32..949f34cc 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -22,6 +22,9 @@ jobs: run: ls && cp -r ../* /opt/ && mv /opt/template-project /opt/ST-LIB - name: Display ST-LIB run: ls /opt/ST-LIB + - uses: actions/checkout@v3 + with: + repository: ' ' - name: Invoking python run: python3 tools/build.py -eth ON -t NUCLEO -bb Debug From 4f3c77b9fbe480fd8d0bdc6e0fbc785d34c256b5 Mon Sep 17 00:00:00 2001 From: Gonzalo <58850783+g0nz4I0@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:59:28 +0100 Subject: [PATCH 29/29] run against development --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 949f34cc..8133de05 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 with: repository: HyperloopUPV-H8/ST-LIB - ref: 9a5647c0018067351c4c6cfc52dfdc500e56d347 + ref: development - uses: carlosperate/arm-none-eabi-gcc-action@v1 - run: arm-none-eabi-gcc --version - name: Install dependencies