Skip to content

Commit 6ee2e3f

Browse files
committed
ci: Add workflow for building and testing on supported architectures
1 parent 1671c69 commit 6ee2e3f

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build:
13+
name: ${{ matrix.arch }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
arch: [armv7, aarch64, x86_64]
18+
fail-fast: false
19+
env:
20+
MAKEFLAGS: -j
21+
steps:
22+
- name: Install dependencies
23+
run: |
24+
sudo apt-get -y update
25+
sudo apt-get -y install autoconf automake bison flex
26+
27+
- uses: actions/checkout@v4
28+
with:
29+
clean: true
30+
31+
- name: Restore cache of test/cache
32+
uses: actions/cache@v4
33+
with:
34+
path: test/cache
35+
key: cache-${{ matrix.arch }}-${{ hashFiles('test/Makefile') }}
36+
restore-keys: |
37+
cache-${{ matrix.arch }}-
38+
cache-
39+
40+
- name: Build
41+
run: |
42+
make -C test ${{ matrix.arch }}-build
43+
44+
- name: Check
45+
run: |
46+
make -C test ${{ matrix.arch }}-check

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
![CI](https://github.com/wkz/ply/workflows/CI/badge.svg)
2-
31
ply
42
===
53

0 commit comments

Comments
 (0)