Add CI using GitHub Actions
This commit is contained in:
parent
55b6256ed6
commit
230d7f10b1
@ -13,8 +13,8 @@ trim_trailing_whitespace = true
|
|||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
[*.mk]
|
[{Makefile,*.mk}]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[Makefile]
|
[*.yml]
|
||||||
indent_style = tab
|
indent_size = 2
|
||||||
|
49
.github/workflows/ci.yml
vendored
Normal file
49
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# TODO: Generate matrix from directory?
|
||||||
|
# TODO: Conditionally build based on files changed?
|
||||||
|
include:
|
||||||
|
- vendor: arduino
|
||||||
|
board: mega2560
|
||||||
|
- vendor: system76
|
||||||
|
board: addw1
|
||||||
|
- vendor: system76
|
||||||
|
board: addw2
|
||||||
|
- vendor: system76
|
||||||
|
board: bonw14
|
||||||
|
- vendor: system76
|
||||||
|
board: darp5
|
||||||
|
- vendor: system76
|
||||||
|
board: darp7
|
||||||
|
- vendor: system76
|
||||||
|
board: galp3-c
|
||||||
|
- vendor: system76
|
||||||
|
board: galp5
|
||||||
|
- vendor: system76
|
||||||
|
board: gaze15
|
||||||
|
- vendor: system76
|
||||||
|
board: lemp9
|
||||||
|
- vendor: system76
|
||||||
|
board: lemp10
|
||||||
|
- vendor: system76
|
||||||
|
board: oryp5
|
||||||
|
- vendor: system76
|
||||||
|
board: oryp6
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: ./scripts/deps.sh
|
||||||
|
|
||||||
|
- name: Build firmware
|
||||||
|
run: make BOARD=${{ matrix.vendor}}/${{ matrix.board }}
|
Loading…
x
Reference in New Issue
Block a user