-
Notifications
You must be signed in to change notification settings - Fork 1.2k
41 lines (33 loc) · 838 Bytes
/
build_on_commit.yml
File metadata and controls
41 lines (33 loc) · 838 Bytes
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
name: Build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Get required packages
- uses: actions/checkout@v4
- uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '9-2019-q4'
# Build with make
- name: make
env:
VARIANT: VARIANT_ADC
run: make
# Build with Platformio
- name: PlatformIO Install
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: PlatformIO Run
run: pio run
- name: 'Upload Build Artifact'
uses: actions/upload-artifact@v4
with:
path: ${{github.workspace}}/.pio/build/**
name: ${{github.event.repository.name}}_build_${{github.run_number}}
retention-days: 5