-
Notifications
You must be signed in to change notification settings - Fork 76
59 lines (47 loc) · 1.45 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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/[email protected]
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