-
Notifications
You must be signed in to change notification settings - Fork 5
92 lines (75 loc) · 2.22 KB
/
githubci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Build
on:
pull_request:
push:
repository_dispatch:
release:
types:
- created
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Checkout code
uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/[email protected]
# - name: Checkout adafruit/ci-arduino
# uses: actions/checkout@v3
# with:
# repository: adafruit/ci-arduino
# path: ci
# - name: pre-install
# run: bash ci/actions_install.sh
# - name: doxygen
# env:
# GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
# PRETTYNAME : "Adafruit IntelliKeys"
# run: bash ci/doxy_gen_and_deploy.sh
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
# RP2040
- 'feather_rp2040_usbhost_tinyusb'
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout adafruit/ci-arduino
uses: actions/checkout@v3
with:
repository: adafruit/ci-arduino
path: ci
- name: pre-install
run: bash ci/actions_install.sh
- name: test platforms
run: |
python3 ci/build_platform.py ${{ matrix.board }}
tree examples/ik_translator
cp examples/ik_translator/build/*/ik_translator.ino.uf2 ik_translator-${{ matrix.board }}.uf2
- uses: actions/upload-artifact@v4
with:
name: ik_translator-${{ matrix.board }}
path: ik_translator-${{ matrix.board }}.uf2
- name: Prepare Release Asset
if: ${{ github.event_name == 'release' }}
run: |
cp ik_translator-${{ matrix.board }}.uf2 ik_translator-${{ matrix.board }}-${{ github.event.release.tag_name }}.uf2
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
if: ${{ github.event_name == 'release' }}
with:
files: ik_translator-${{ matrix.board }}-${{ github.event.release.tag_name }}.uf2