Skip to content

Commit 3e71dc9

Browse files
committed
add github actions CI
1 parent a46be16 commit 3e71dc9

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

.github/workflows/ci.yml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
on: [push, pull_request, workflow_dispatch]
3+
jobs:
4+
linux:
5+
runs-on: ubuntu-latest
6+
timeout-minutes: 10
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
submodules: recursive
11+
fetch-depth: 0
12+
- run: make check
13+
msys:
14+
runs-on: windows-latest
15+
timeout-minutes: 10
16+
env:
17+
MSYS2_DIR: msys64
18+
MSYS2_ARCH: x86_64
19+
MSYSTEM: MINGW64
20+
ARCH: win64
21+
PLATFORM: x64
22+
steps:
23+
# see https://github.com/msys2/setup-msys2
24+
- name: setup-msys2
25+
uses: msys2/setup-msys2@v2
26+
with:
27+
path-type: minimal
28+
update: true
29+
install: >-
30+
git
31+
base-devel
32+
mingw-w64-x86_64-toolchain
33+
- name: checkout
34+
uses: actions/checkout@v4
35+
with:
36+
submodules: recursive
37+
fetch-depth: 0
38+
- shell: msys2 {0}
39+
run: make check
40+
macos:
41+
runs-on: macos-latest
42+
timeout-minutes: 15
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
48+
- run: make check
49+
ppc:
50+
os: ubuntu-latest
51+
timeout-minutes: 40
52+
steps:
53+
- uses: actions/checkout@v4
54+
with:
55+
submodules: recursive
56+
fetch-depth: 0
57+
- name: install ppc cross
58+
run: |
59+
sudo apt-get update
60+
sudo apt-get install -y --no-install-recommends qemu gcc-powerpc-linux-gnu libc6-dev-powerpc-cross
61+
- run: make check CC="powerpc-linux-gnu-gcc"
62+
aarch64:
63+
runs-on: ubuntu-latest
64+
timeout-minutes: 40
65+
steps:
66+
- uses: actions/checkout@v4
67+
with:
68+
submodules: recursive
69+
fetch-depth: 0
70+
- uses: uraimo/[email protected]
71+
name: check on aarch64
72+
id: runcmd
73+
with:
74+
arch: aarch64
75+
githubToken: ${{ github.token }}
76+
distro: ubuntu_latest
77+
install: |
78+
apt-get update -q -y
79+
apt-get install -y make gcc grep
80+
run: make check

0 commit comments

Comments
 (0)