-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.79 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Taken and adapted from test-OSW.yml which is part of Open-Smartwatch-OS
# Link: https://github.com/Open-Smartwatch/open-smartwatch-os/blob/master/.github/workflows/test-OSW.yml
name: Build Minty-OS (Ubuntu, all models)
on:
workflow_dispatch:
push:
paths_ignore: '["*.md"]'
pull_request:
branches: [ main ]
jobs:
check_skip:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
build-os:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository and submodules
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165)
uses: nschloe/[email protected]
with:
submodules: recursive
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: platformio-${{ runner.os }}
- name: Install swig
run: sudo apt-get update && sudo apt-get -y install swig
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install PlatformIO
run: python -m pip install --upgrade pip && pip install --upgrade platformio
- name: Compile
run: pio run -ewatchy
- name: Upload firmware artifacts
uses: actions/upload-artifact@v3
with:
name: firmwares
path: |
*.bin