Skip to content

add github actions CI #3

add github actions CI

add github actions CI #3

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- run: make check
windows:
runs-on: windows-latest
timeout-minutes: 10
env:
MSYS2_DIR: msys64
MSYS2_ARCH: x86_64
MSYSTEM: MINGW64
ARCH: win64
PLATFORM: x64
steps:
# see https://github.com/msys2/setup-msys2
- name: setup-msys2
uses: msys2/setup-msys2@v2
with:
path-type: minimal
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- shell: msys2 {0}
run: make check
macOS:
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- run: make check
ppc:
os: ubuntu-latest

Check failure on line 43 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 43, Col: 5): Unexpected value 'os' .github/workflows/ci.yml (Line: 44, Col: 5): Unexpected value 'chost'

Check failure on line 43 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 43, Col: 5): Unexpected value 'os' .github/workflows/ci.yml (Line: 44, Col: 5): Unexpected value 'chost'
chost: powerpc-linux-gnu
compiler: powerpc-linux-gnu-gcc
cxx-compiler: g++-powerpc-linux-gnu
cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc.cmake
packages: qemu gcc-powerpc-linux-gnu g++-powerpc-linux-gnu libc6-dev-powerpc-cross
steps:
- uses: actions/checkout@v4
- name: install ppc cross
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends qemu gcc-powerpc-linux-gnu libc6-dev-powerpc-cross
- run: make check CC="gcc-powerpc-linux-gnu"
aarch64:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: uraimo/[email protected]
name: check on aarch64
id: runcmd
with:
arch: aarch64
githubToken: ${{ github.token }}
distro: ubuntu_latest
install: |
apt-get update -q -y
apt-get install -y make gcc grep
run: make check