aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/check.yml
blob: 6e48bdf7bcd23b3dfeb081b3c0798a68d0a4f942 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2020 Johannes Stoelp

name: check-examples
on: [push, pull_request]

jobs:
  check_examples:
    runs-on: ubuntu-latest
    name: Check examples (all ARCHs)
    steps:
    - name: Checkout project
      uses: actions/checkout@v2
    - name: Build docker image
      run: |
          docker/build.sh matcha-box
    - name: Run examples
      run: |
          for arch in x86_64 arm64 arm riscv64; do
              echo -e "\e[1;32m==> check ARCH=$arch\e0m"
              docker run                 \
                  --rm                   \
                  --volume $PWD:/develop \
                  matcha-box /bin/bash -c "make ARCH=$arch clean demo1"
          done