Skip to content

ci: Never accept a cache from another architecture #10

ci: Never accept a cache from another architecture

ci: Never accept a cache from another architecture #10

Workflow file for this run

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 }}-
- name: Build
run: |
make -C test ${{ matrix.arch }}-build
- name: Check
run: |
make -C test ${{ matrix.arch }}-check