From f6950ba31e0ea8850e23511ab2bdd1a7ea3d5d7c Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:26:18 -0400 Subject: [PATCH 01/22] Create main.yml --- .github/workflows/main.yml | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4ba80a1a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,59 @@ +name: Build and Publish + +on: + push: + branches: + - '*' + +jobs: + build_template: + runs-on: ubuntu-latest + + env: + TOOLCHAIN_UPDATE: 10.3-2021.10 + TOOLCHAIN_URL: "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${{ env.TOOLCHAIN_UPDATE }}/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}-x86_64-linux.tar.bz2" + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install SSH key + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Install gcc-arm-embedded + run: | + curl -LSso toolchain.tar.bz2 $TOOLCHAIN_URL + tar -xjvf toolchain.tar.bz2 + echo "##[add-path]$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install CLI + run: | + pip install pros-cli + + - name: Build template + run: | + make template + mkdir -p artifacts + cp template/*.zip artifacts + + - name: Update Build Number + run: | + echo "##[set-output name=build_number]$(cat version)" + echo "::set-env name=KernelVersion::$(cat version)" + + - name: Build binaries + run: | + make + + - name: Publish artifacts + uses: actions/upload-artifact@v2 + with: + name: template + path: artifacts From 516eaba80b258e28e5ce971b9ed1b39ad6f51bee Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:44:23 -0400 Subject: [PATCH 02/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ba80a1a..e4e4d79c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: env: TOOLCHAIN_UPDATE: 10.3-2021.10 - TOOLCHAIN_URL: "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${{ env.TOOLCHAIN_UPDATE }}/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}-x86_64-linux.tar.bz2" + TOOLCHAIN_URL: "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" steps: - name: Checkout code From 09f46bcb193e0f2fae8f2534c94d78c3e59560d7 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:46:23 -0400 Subject: [PATCH 03/22] Update main.yml --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4e4d79c..cc9f1508 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,6 @@ jobs: env: TOOLCHAIN_UPDATE: 10.3-2021.10 - TOOLCHAIN_URL: "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" steps: - name: Checkout code @@ -24,7 +23,7 @@ jobs: - name: Install gcc-arm-embedded run: | - curl -LSso toolchain.tar.bz2 $TOOLCHAIN_URL + curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 echo "##[add-path]$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" From 774eb31adec82c755166e479f46555e4338da020 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:51:22 -0400 Subject: [PATCH 04/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc9f1508..5857d000 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: run: | curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - echo "##[add-path]$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" + echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin >> $GITHUB_PATH" - name: Set up Python uses: actions/setup-python@v2 From a648ba66dc93a6bf64a9d8cc85dbd72e5882b356 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:01:06 -0400 Subject: [PATCH 05/22] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5857d000..a91ade0f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin >> $GITHUB_PATH" + echo "$GITHUB_PATH" - name: Set up Python uses: actions/setup-python@v2 From ae6123a2e7b44b779c9c98b52f5ac99e3f6a0ab1 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:04:15 -0400 Subject: [PATCH 06/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a91ade0f..9f3f377a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: run: | curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin >> $GITHUB_PATH" + echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH echo "$GITHUB_PATH" - name: Set up Python From 45de18fcb7914d825313128d39c036b76d40aed8 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:06:16 -0400 Subject: [PATCH 07/22] Update main.yml --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f3f377a..c63497eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,14 +13,15 @@ jobs: TOOLCHAIN_UPDATE: 10.3-2021.10 steps: - - name: Checkout code - uses: actions/checkout@v2 - name: Install SSH key uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - + + - name: Checkout code + uses: actions/checkout@v2 + - name: Install gcc-arm-embedded run: | curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" From e96ee10779af8d85a2a9298f19742336e5a905b0 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:08:11 -0400 Subject: [PATCH 08/22] Update main.yml --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c63497eb..e3eefc3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,11 @@ jobs: uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v2 + with: + repository: purduesigbots/pros + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Install gcc-arm-embedded run: | @@ -40,6 +42,8 @@ jobs: - name: Build template run: | + git submodule init + git submodule update make template mkdir -p artifacts cp template/*.zip artifacts From 3f928ecfb531964f95056dea488e7446db2c2561 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:18:09 -0400 Subject: [PATCH 09/22] Update main.yml --- .github/workflows/main.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3eefc3c..136f2be3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,15 +48,6 @@ jobs: mkdir -p artifacts cp template/*.zip artifacts - - name: Update Build Number - run: | - echo "##[set-output name=build_number]$(cat version)" - echo "::set-env name=KernelVersion::$(cat version)" - - - name: Build binaries - run: | - make - - name: Publish artifacts uses: actions/upload-artifact@v2 with: From 34aa38b62a64db32c86abb8703907f2bad781195 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:12:41 -0400 Subject: [PATCH 10/22] Update main.yml --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 136f2be3..9209b597 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,6 @@ jobs: cp template/*.zip artifacts - name: Publish artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: template - path: artifacts + path: artifacts/*.zip From 3187b7c269238e332cf1a844649b7b1b66758eb1 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:28:05 -0400 Subject: [PATCH 11/22] Attempt to add caching --- .github/workflows/main.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9209b597..366d74b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,13 +23,32 @@ jobs: with: repository: purduesigbots/pros ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - + + - name: Retrieve gcc-arm-embedded from cache + id: cache-gcc + uses: actions/cache/restore@v4 + with: + path: + $(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} + key: + gcc-non-eabi-${TOOLCHAIN_UPDATE} + - name: Install gcc-arm-embedded + if: steps.cache-gcc.outputs.cache-hit != 'true' run: | curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH - echo "$GITHUB_PATH" + - name: Upload gcc-arm-embedded to cache + if: steps.cache-gcc.outputs.cache-hit != 'true + uses: actions/cache/save@v4 + with: + path: + $(pwd)/gcc-non-eabi-${TOOLCHAIN_UPDATE} + key: + gcc-non-eabi-${TOOLCHAIN_UPDATE} + + - name: Add gcc-arm-embedded to path + run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH - name: Set up Python uses: actions/setup-python@v2 @@ -51,4 +70,4 @@ jobs: - name: Publish artifacts uses: actions/upload-artifact@v4 with: - path: artifacts/*.zip + path: artifacts/kernel@*.zip From 52cbc5882d40acc61ee911caffb81d560e3cc44e Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:28:43 -0400 Subject: [PATCH 12/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 366d74b5..bde6feb3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - name: Upload gcc-arm-embedded to cache - if: steps.cache-gcc.outputs.cache-hit != 'true + if: steps.cache-gcc.outputs.cache-hit != 'true' uses: actions/cache/save@v4 with: path: From ffd35c3326ad12142ae98cd23f14add2713efe45 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:30:59 -0400 Subject: [PATCH 13/22] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bde6feb3..cdce622e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: path: $(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} key: - gcc-non-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-non-eabi-${TOOLCHAIN_UPDATE} - name: Install gcc-arm-embedded if: steps.cache-gcc.outputs.cache-hit != 'true' @@ -43,9 +43,9 @@ jobs: uses: actions/cache/save@v4 with: path: - $(pwd)/gcc-non-eabi-${TOOLCHAIN_UPDATE} + $(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} key: - gcc-non-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} - name: Add gcc-arm-embedded to path run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH From ace7549bdbdc6f0a3a0fe8cc4b85bbaee57e91ef Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:33:51 -0400 Subject: [PATCH 14/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cdce622e..23c2fce5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: uses: actions/cache/save@v4 with: path: - $(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} key: gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} From 047a03536475b65761fd1f479348df083687eb6f Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:37:20 -0400 Subject: [PATCH 15/22] Update main.yml --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23c2fce5..2cc8418d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,9 +29,9 @@ jobs: uses: actions/cache/restore@v4 with: path: - $(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} + $(pwd)/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: - gcc-arm-non-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-non-eabi-${{env.TOOLCHAIN_UPDATE}} - name: Install gcc-arm-embedded if: steps.cache-gcc.outputs.cache-hit != 'true' @@ -43,9 +43,9 @@ jobs: uses: actions/cache/save@v4 with: path: - gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: - gcc-arm-none-eabi-${TOOLCHAIN_UPDATE} + gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - name: Add gcc-arm-embedded to path run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH @@ -71,3 +71,4 @@ jobs: uses: actions/upload-artifact@v4 with: path: artifacts/kernel@*.zip + compression-level: 0 From dc2311b715872327fa079507187d657c75c2fcb1 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:40:53 -0400 Subject: [PATCH 16/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2cc8418d..afc793fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: path: $(pwd)/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: - gcc-arm-non-eabi-${{env.TOOLCHAIN_UPDATE}} + gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - name: Install gcc-arm-embedded if: steps.cache-gcc.outputs.cache-hit != 'true' From 34147a121d984d236c4d178280da3f97dfe15058 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:51:29 -0400 Subject: [PATCH 17/22] Update main.yml --- .github/workflows/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afc793fb..86a78843 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,10 +26,10 @@ jobs: - name: Retrieve gcc-arm-embedded from cache id: cache-gcc - uses: actions/cache/restore@v4 + uses: actions/cache@v4 with: path: - $(pwd)/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} + /gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} @@ -38,15 +38,7 @@ jobs: run: | curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - - name: Upload gcc-arm-embedded to cache - if: steps.cache-gcc.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 - with: - path: - gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - key: - gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - + - name: Add gcc-arm-embedded to path run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH From 900a68c791d331f1bd7d555151656a5240b02a70 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:54:55 -0400 Subject: [PATCH 18/22] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86a78843..b1ec888f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: uses: actions/cache@v4 with: path: - /gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} + ~/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} From e26da23bd156adaa425d5f50a50aca5695317492 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:58:42 -0400 Subject: [PATCH 19/22] Update main.yml --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b1ec888f..8bef9b9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: uses: actions/cache@v4 with: path: - ~/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} + gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} key: gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} @@ -40,7 +40,9 @@ jobs: tar -xjvf toolchain.tar.bz2 - name: Add gcc-arm-embedded to path - run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH + run: | + echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH + echo "$(pwd) - name: Set up Python uses: actions/setup-python@v2 From 27ae5a0f103029ead12a35aa4742a302463af572 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 01:02:59 -0400 Subject: [PATCH 20/22] Update main.yml --- .github/workflows/main.yml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8bef9b9e..44d75fcf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Build and Publish +name: Build and Cache Example on: push: @@ -6,7 +6,7 @@ on: - '*' jobs: - build_template: + build_and_cache: runs-on: ubuntu-latest env: @@ -14,35 +14,25 @@ jobs: steps: - - name: Install SSH key - uses: webfactory/ssh-agent@v0.5.3 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Checkout code uses: actions/checkout@v2 - with: - repository: purduesigbots/pros - ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Retrieve gcc-arm-embedded from cache id: cache-gcc - uses: actions/cache@v4 + uses: actions/cache@v2 with: - path: - gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - key: - gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} + path: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }} + key: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }} - name: Install gcc-arm-embedded if: steps.cache-gcc.outputs.cache-hit != 'true' run: | - curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" + curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${{ env.TOOLCHAIN_UPDATE }}/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - + rm toolchain.tar.bz2 + - name: Add gcc-arm-embedded to path - run: | - echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH - echo "$(pwd) + run: echo "$(pwd)/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}/bin" >> $GITHUB_PATH - name: Set up Python uses: actions/setup-python@v2 @@ -62,7 +52,7 @@ jobs: cp template/*.zip artifacts - name: Publish artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v2 with: path: artifacts/kernel@*.zip compression-level: 0 From f9f17b4899dc146b765baff3a813a8f93199061d Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 28 Jun 2024 01:06:01 -0400 Subject: [PATCH 21/22] restore to old version --- .github/workflows/main.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44d75fcf..b1ec888f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Build and Cache Example +name: Build and Publish on: push: @@ -6,7 +6,7 @@ on: - '*' jobs: - build_and_cache: + build_template: runs-on: ubuntu-latest env: @@ -14,25 +14,33 @@ jobs: steps: + - name: Install SSH key + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Checkout code uses: actions/checkout@v2 + with: + repository: purduesigbots/pros + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Retrieve gcc-arm-embedded from cache id: cache-gcc - uses: actions/cache@v2 + uses: actions/cache@v4 with: - path: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }} - key: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }} + path: + ~/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} + key: + gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}} - name: Install gcc-arm-embedded if: steps.cache-gcc.outputs.cache-hit != 'true' run: | - curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${{ env.TOOLCHAIN_UPDATE }}/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}-x86_64-linux.tar.bz2" + curl -LSso toolchain.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${TOOLCHAIN_UPDATE}/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}-x86_64-linux.tar.bz2" tar -xjvf toolchain.tar.bz2 - rm toolchain.tar.bz2 - + - name: Add gcc-arm-embedded to path - run: echo "$(pwd)/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}/bin" >> $GITHUB_PATH + run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH - name: Set up Python uses: actions/setup-python@v2 @@ -52,7 +60,7 @@ jobs: cp template/*.zip artifacts - name: Publish artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: artifacts/kernel@*.zip compression-level: 0 From 437060cd5943de3c4eef28e39063514d3ec68839 Mon Sep 17 00:00:00 2001 From: noam987 <50681033+noam987@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:28:51 -0500 Subject: [PATCH 22/22] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b1ec888f..99cae506 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: Build and Publish on: + workflow_dispatch: push: branches: - '*'