Skip to content

Commit

Permalink
ci: Add workflow for building and testing on supported architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
wkz committed Aug 26, 2024
1 parent 1671c69 commit 6ee2e3f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
- 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
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
![CI](https://github.com/wkz/ply/workflows/CI/badge.svg)

ply
===

Expand Down

0 comments on commit 6ee2e3f

Please sign in to comment.