-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.1 KB
/
build-pcb.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
name: build-pcb
on: [pull_request, push]
defaults:
run:
working-directory: ${GITHUB_WORKSPACE}/pcb
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Poetry
working-directory: ${GITHUB_WORKSPACE}
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
- name: Install dependencies
working-directory: ${GITHUB_WORKSPACE}
run: poetry install --no-interaction
- name: Create mechanical files
working-directory: ${GITHUB_WORKSPACE}
run: poetry run make pcb-mech
- name: Build PCBs
uses: docker://ghcr.io/atopile/atopile-kicad
- name: Upload PCB artifacts
uses: actions/upload-artifact@v3
with:
name: pcb-build
path: pcb/build/
if-no-files-found: error