Skip to content

Commit f9f17b4

Browse files
authored
restore to old version
1 parent 27ae5a0 commit f9f17b4

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
1-
name: Build and Cache Example
1+
name: Build and Publish
22

33
on:
44
push:
55
branches:
66
- '*'
77

88
jobs:
9-
build_and_cache:
9+
build_template:
1010
runs-on: ubuntu-latest
1111

1212
env:
1313
TOOLCHAIN_UPDATE: 10.3-2021.10
1414

1515
steps:
1616

17+
- name: Install SSH key
18+
uses: webfactory/[email protected]
19+
with:
20+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
1721
- name: Checkout code
1822
uses: actions/checkout@v2
23+
with:
24+
repository: purduesigbots/pros
25+
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
1926

2027
- name: Retrieve gcc-arm-embedded from cache
2128
id: cache-gcc
22-
uses: actions/cache@v2
29+
uses: actions/cache@v4
2330
with:
24-
path: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}
25-
key: gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}
31+
path:
32+
~/gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}}
33+
key:
34+
gcc-arm-none-eabi-${{env.TOOLCHAIN_UPDATE}}
2635

2736
- name: Install gcc-arm-embedded
2837
if: steps.cache-gcc.outputs.cache-hit != 'true'
2938
run: |
30-
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"
39+
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"
3140
tar -xjvf toolchain.tar.bz2
32-
rm toolchain.tar.bz2
33-
41+
3442
- name: Add gcc-arm-embedded to path
35-
run: echo "$(pwd)/gcc-arm-none-eabi-${{ env.TOOLCHAIN_UPDATE }}/bin" >> $GITHUB_PATH
43+
run: echo "$(pwd)/gcc-arm-none-eabi-${TOOLCHAIN_UPDATE}/bin" >> $GITHUB_PATH
3644

3745
- name: Set up Python
3846
uses: actions/setup-python@v2
@@ -52,7 +60,7 @@ jobs:
5260
cp template/*.zip artifacts
5361
5462
- name: Publish artifacts
55-
uses: actions/upload-artifact@v2
63+
uses: actions/upload-artifact@v4
5664
with:
5765
path: artifacts/kernel@*.zip
5866
compression-level: 0

0 commit comments

Comments
 (0)