-
-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (59 loc) · 1.69 KB
/
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
61
62
63
64
65
66
67
68
69
70
71
72
name: build
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
compile:
runs-on: ubuntu-latest
container:
image: archlinux
strategy:
fail-fast: false
matrix:
target:
- linux-uhid
- 'stm32f1-generic -c rival310'
- 'stm32f1-generic -c bluepill'
- 'efm32gg12b-generic -c sltb009a'
- 'sams70-generic -c big-sammy'
- 'atmega32u4-generic -c octomouse'
steps:
- name: Update the system and install dependencies
run: pacman -Syu --noconfirm --noprogressbar --needed python-pip ninja gcc arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib avr-gcc avr-binutils avr-libc pkgconf readline git
- name: Install ninja_syntax
run: pip install ninja_syntax
- name: Checkout
uses: actions/checkout@v3.0.2
- name: Container permissions
run: git config --global --add safe.directory '*'
- name: Configure
run: ./configure.py ${{ matrix.target }}
- name: Build
run: ninja
compile-oss-fuzz:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Update the system and install dependencies
run: pacman -Syu --noconfirm --noprogressbar --needed python-pip ninja clang git
- name: Install ninja_syntax
run: pip install ninja_syntax tomli
- name: Checkout
uses: actions/checkout@v3.0.2
- name: Container permissions
run: git config --global --add safe.directory '*'
- name: Configure
run: ./configure-oss-fuzz.py
- name: Build
run: ninja