-
Notifications
You must be signed in to change notification settings - Fork 84
47 lines (37 loc) · 981 Bytes
/
build.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
name: Build Binary
on:
push:
branches: [ software ]
pull_request:
branches: [ software ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache
id: cache-1
uses: actions/cache@v3
with:
path: cache
key: ${{ runner.os }}-cache-1
- name: Download GCC-ARM-NONE-EABI
if: steps.cache-1.outputs.cache-hit != 'true'
run: |
mkdir cache && cd cache
wget "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2"
cd ..
- name: Extract archives
run: |
tar -xf cache/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -C /opt
- name: make
run: make
- name: Upload compiled binaries
uses: actions/upload-artifact@v3
with:
name: GRBL-Advanced
path: |
*.bin
*.hex