-
Notifications
You must be signed in to change notification settings - Fork 54
44 lines (38 loc) · 1.05 KB
/
test_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
name: Test Build
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup ESP32
env:
HOME: ${{ runner.workspace }}/ArduRemoteID
run: |
PATH="$HOME/.local/bin:$PATH"
./scripts/install_build_env.sh
./scripts/add_libraries.sh
- name: Build
env:
HOME: ${{ runner.workspace }}/ArduRemoteID
run: |
cd RemoteIDModule
make setup
make all
- name: Check build files
id: check_files
uses: andstor/file-existence-action@v1
with:
files: RemoteIDModule/ArduRemoteID*.bin
allow_failure: true
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: binaries
path: RemoteIDModule/ArduRemoteID*.bin
retention-days: 7