-
Notifications
You must be signed in to change notification settings - Fork 94
46 lines (40 loc) · 995 Bytes
/
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
name: Build and test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
name: ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
matrix:
arch: [armv7, aarch64, x86_64]
fail-fast: false
env:
MAKEFLAGS: -j
steps:
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install autoconf automake bison flex qemu-system-arm qemu-system-x86
- uses: actions/checkout@v4
with:
clean: true
- name: Restore cache of test/cache
uses: actions/cache@v4
with:
path: test/cache
key: cache-${{ matrix.arch }}-${{ hashFiles('test/Makefile') }}
restore-keys: |
cache-${{ matrix.arch }}-
cache-
- name: Build
run: |
make -C test ${{ matrix.arch }}-build
- name: Check
run: |
make -C test ${{ matrix.arch }}-check