Skip to content

Commit

Permalink
restore to old version
Browse files Browse the repository at this point in the history
  • Loading branch information
noam987 committed Jun 28, 2024
1 parent 27ae5a0 commit f9f17b4
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,46 @@
name: Build and Cache Example
name: Build and Publish

on:
push:
branches:
- '*'

jobs:
build_and_cache:
build_template:
runs-on: ubuntu-latest

env:
TOOLCHAIN_UPDATE: 10.3-2021.10

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
Expand All @@ -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

0 comments on commit f9f17b4

Please sign in to comment.