From 12c4a5ff7483c57919a2d3acbc702fbcb8cf2aac Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:24:55 -0400 Subject: [PATCH 01/10] Adding in initial rev of build test --- .github/workflows/build-check.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-check.yml diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 00000000..cf3e0582 --- /dev/null +++ b/.github/workflows/build-check.yml @@ -0,0 +1,33 @@ +name: Build +on: [push] +jobs: + run-build: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Docker + run: | + sudo apt-get -y update + sudo apt-get -y install docker + + - name: Pull Docker Image + run: | + sudo docker pull nwdepatie/ner-gcc-arm + + - name: Run Docker Container + run: | + sudo docker run --rm -it --privileged \ + -v "$PWD:/home/app" \ + nwdepatie/ner-gcc-arm:latest bash + + - name: Build Application + run: | + if ! make; then + echo "The application has failed to build." + exit 1 # This will cause the workflow to fail + fi \ No newline at end of file From 45e9966a6f3be64fead9ca3ad55d125302cee82c Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:28:23 -0400 Subject: [PATCH 02/10] checking again --- .github/workflows/build-check.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index cf3e0582..21d29eb2 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -21,13 +21,10 @@ jobs: - name: Run Docker Container run: | - sudo docker run --rm -it --privileged \ + sudo docker exec -it --privileged \ -v "$PWD:/home/app" \ - nwdepatie/ner-gcc-arm:latest bash - - - name: Build Application - run: | - if ! make; then + nwdepatie/ner-gcc-arm:latest sh -c + "if ! make; then echo "The application has failed to build." exit 1 # This will cause the workflow to fail - fi \ No newline at end of file + fi" \ No newline at end of file From fba9be50b0168b11827911e723fc07dfe4a002b0 Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:31:43 -0400 Subject: [PATCH 03/10] Doing a quick test --- .github/workflows/build-check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 21d29eb2..afc5cd4b 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -21,8 +21,7 @@ jobs: - name: Run Docker Container run: | - sudo docker exec -it --privileged \ - -v "$PWD:/home/app" \ + sudo docker exec -it \ nwdepatie/ner-gcc-arm:latest sh -c "if ! make; then echo "The application has failed to build." From 10cf05d4f021db7ae92f92fe0f6401e82ebb018c Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:35:23 -0400 Subject: [PATCH 04/10] Doing another test --- .github/workflows/build-check.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index afc5cd4b..fb9d89a9 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -21,7 +21,11 @@ jobs: - name: Run Docker Container run: | - sudo docker exec -it \ + sudo docker run nwdepatie/ner-gcc-arm:latest + + - name: Execute Make + run: | + sudo docker exec -it \ nwdepatie/ner-gcc-arm:latest sh -c "if ! make; then echo "The application has failed to build." From 677218493d255dde561be76a326adc1b5a464455 Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:38:36 -0400 Subject: [PATCH 05/10] Trying to tag the docker image --- .github/workflows/build-check.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index fb9d89a9..7aa4e979 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -21,12 +21,16 @@ jobs: - name: Run Docker Container run: | - sudo docker run nwdepatie/ner-gcc-arm:latest + sudo docker run nwdepatie/ner-gcc-arm:latest -t ner-gcc-arm + + - name: List Docker Images + run: | + docker ps - name: Execute Make run: | sudo docker exec -it \ - nwdepatie/ner-gcc-arm:latest sh -c + ner-gcc-arm:latest sh -c "if ! make; then echo "The application has failed to build." exit 1 # This will cause the workflow to fail From 753c7cda867a44c352c9e9c2481c44c98334c3ba Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:40:43 -0400 Subject: [PATCH 06/10] removing ta --- .github/workflows/build-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 7aa4e979..16e8e93f 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -21,7 +21,7 @@ jobs: - name: Run Docker Container run: | - sudo docker run nwdepatie/ner-gcc-arm:latest -t ner-gcc-arm + sudo docker run nwdepatie/ner-gcc-arm:latest - name: List Docker Images run: | From fd1ee9cf474cd5a1b9617b4935458e27b7753e80 Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:46:54 -0400 Subject: [PATCH 07/10] Trying to use a container as a base --- .github/workflows/build-check.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 16e8e93f..f884e1ef 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -3,6 +3,8 @@ on: [push] jobs: run-build: runs-on: ubuntu-latest + container: + image: nwdepatie/ner-gcc-arm:latest timeout-minutes: 10 steps: - name: Checkout code @@ -10,23 +12,6 @@ jobs: with: submodules: recursive - - name: Install Docker - run: | - sudo apt-get -y update - sudo apt-get -y install docker - - - name: Pull Docker Image - run: | - sudo docker pull nwdepatie/ner-gcc-arm - - - name: Run Docker Container - run: | - sudo docker run nwdepatie/ner-gcc-arm:latest - - - name: List Docker Images - run: | - docker ps - - name: Execute Make run: | sudo docker exec -it \ From 070707f34f8c834254ca7ccc089dcab2e6cbe063 Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:48:11 -0400 Subject: [PATCH 08/10] Hopefully this works --- .github/workflows/build-check.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index f884e1ef..4dec4f01 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -14,9 +14,7 @@ jobs: - name: Execute Make run: | - sudo docker exec -it \ - ner-gcc-arm:latest sh -c - "if ! make; then + if ! make; then echo "The application has failed to build." exit 1 # This will cause the workflow to fail - fi" \ No newline at end of file + fi \ No newline at end of file From c495e89f30742ab34ce6875b10cc33b902cf8f46 Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:50:07 -0400 Subject: [PATCH 09/10] Making sure that this build will fail --- Core/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index bf623acf..4670478c 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -40,7 +40,7 @@ /* USER CODE BEGIN PM */ /* USER CODE END PM */ - +THIS SHOULD BREAK THE PIPELINE /* Private variables ---------------------------------------------------------*/ CAN_HandleTypeDef hcan1; From dcd128f3ad831211445516c8288759e214afecee Mon Sep 17 00:00:00 2001 From: nwdepatie Date: Mon, 25 Sep 2023 09:51:20 -0400 Subject: [PATCH 10/10] making code work again --- Core/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 4670478c..bf623acf 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -40,7 +40,7 @@ /* USER CODE BEGIN PM */ /* USER CODE END PM */ -THIS SHOULD BREAK THE PIPELINE + /* Private variables ---------------------------------------------------------*/ CAN_HandleTypeDef hcan1;