Skip to content

Commit

Permalink
feat: Set up CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Oct 15, 2023
1 parent 453a243 commit 4135f54
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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/checkout@v3.2.0
- name: build artifact
# The Github Action for non-x86 CPU
# https://github.com/uraimo/run-on-arch-action
uses: uraimo/run-on-arch-action@v2.5.0
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/checkout@v3.2.0
- name: style check
run: |
sudo apt-get install -q -y clang-format-17
sh .ci/check-format.sh
shell: bash

0 comments on commit 4135f54

Please sign in to comment.