-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.04 KB
/
ci.yaml
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
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4.1.1
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4.0.1
with:
node-version: 18
cache: pnpm
- name: Install pnpm dependencies
run: pnpm install
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.9'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Copy custom board files
run: |
mkdir -p ~/.platformio/platforms/ststm32/boards/
cp -R ./boards/* ~/.platformio/platforms/ststm32/boards/
# TODO: run linter?
- name: Build
run: pio run
# TODO: run tests
- name: Semantic Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release