Skip to content

feat: Set up CI workflow #3

feat: Set up CI workflow

feat: Set up CI workflow #3

Workflow file for this run

name: Github Actions
on: [push, pull_request]
jobs:
# for validate test cases
host_arm:
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [armv7, aarch64]
cxx_compiler: [g++-10, clang++-11]
steps:
- name: checkout code
uses: actions/[email protected]
- name: build artifact
# The Github Action for non-x86 CPU
# https://github.com/uraimo/run-on-arch-action
uses: uraimo/[email protected]
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
env: |
CXX: ${{ matrix.cxx_compiler }}
install: |
apt-get update -q -y
apt-get install -q -y "${{ matrix.cxx_compiler }}" make
apt-get install -q -y gcc
run: |
make check
coding_style:
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/[email protected]
- name: style check
# clang-format version should be set
run: |
sudo apt-get install -q -y clang-format
sh .ci/check-format.sh
shell: bash