-
Notifications
You must be signed in to change notification settings - Fork 123
38 lines (35 loc) · 980 Bytes
/
main.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
name: Github Actions
on: [push, pull_request]
jobs:
host-x86:
runs-on: ubuntu-22.04
strategy:
matrix:
compiler: [gcc-12, clang]
steps:
- name: checkout code
uses: actions/checkout@v4
- name: build artifact
env:
CC: ${{ matrix.compiler }}
run: |
sudo apt-get update -q -y
sudo apt-get install -q -y graphviz jq
sudo apt-get install -q -y qemu-user
sudo apt-get install -q -y build-essential
make clean config
make check-snapshots || exit 1
make clean config ARCH=arm
make check || exit 1
make clean config ARCH=riscv
make check || exit 1
coding_style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: coding convention
run: |
sudo apt-get install -q -y clang-format-12
.ci/check-newline.sh
.ci/check-format.sh
shell: bash