Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add GitHub workflows #166

Merged
merged 5 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/aarch64_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: aarch64 Linux

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[aarch64-linux-gnu],
[aarch64_be-linux-gnu]
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
steps:
- uses: actions/checkout@v2
- name: Install Ninja
run: |
sudo apt-get update
sudo apt-get install ninja-build
- name: Build
run: ./scripts/run_integration.sh build
- name: Test
run: ./scripts/run_integration.sh test
35 changes: 35 additions & 0 deletions .github/workflows/arm_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: arm Linux

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
arm:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[arm-linux-gnueabihf],
[armv8l-linux-gnueabihf],
[arm-linux-gnueabi],
[armeb-linux-gnueabihf],
[armeb-linux-gnueabi]
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
steps:
- uses: actions/checkout@v2
- name: Install Ninja
run: |
sudo apt-get update
sudo apt-get install ninja-build
- name: Build
run: ./scripts/run_integration.sh build
- name: Test
run: ./scripts/run_integration.sh test
34 changes: 34 additions & 0 deletions .github/workflows/mips_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: mips Linux

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
mips:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
[mips32],
[mips32el],
[mips64],
[mips64el]
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
steps:
- uses: actions/checkout@v2
- name: Install Ninja
run: |
sudo apt-get update
sudo apt-get install ninja-build
- name: Build
run: ./scripts/run_integration.sh build
- name: Test
run: ./scripts/run_integration.sh test
23 changes: 23 additions & 0 deletions .github/workflows/windows_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: x86 Windows

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 16 2019" -DCMAKE_CONFIGURATION_TYPES=Release
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -- /maxcpucount
39 changes: 39 additions & 0 deletions .github/workflows/x86_darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: x86 Darwin

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
xcode:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -v
- name: Install
run: cmake --build build --config Release --target install -v
make:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --target all -v
- name: Test
run: cmake --build build --target test -v
- name: Install
run: cmake --build build --target install -v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: FreeBSD
name: x86 FreeBSD

on:
push:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/x86_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: x86 Linux

on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'

jobs:
# Building using the github runner environement directly.
make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --target all -v
- name: Test
run: cmake --build build --target test -v
- name: Install
run: cmake --build build --target install -v -- DESTDIR=install
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Build folders
build/
cmake_build/
build_cross/
cmake-build-*/
out/

Expand Down
120 changes: 69 additions & 51 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,121 +1,139 @@
language: c

sudo: false

cache:
timeout: 1000
directories:
- $HOME/cpu_features_archives

# see: https://docs.travis-ci.com/user/reference/focal/
dist: focal
addons:
apt_packages:
- ninja-build

env:
global:
TOOLCHAIN=NATIVE
CMAKE_GENERATOR=Ninja

matrix:
jobs:
include:
- os: linux
compiler: gcc
env:
TARGET=x86_64-linux-gnu
script:
- cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
- os: linux
compiler: clang
env:
TARGET=x86_64-linux-gnu
script:
- cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist

- os: osx
compiler: gcc
env:
TARGET=x86_64-osx
CMAKE_GENERATOR="Unix Makefiles"
script:
- cmake --version
- cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --config Release --target ALL_BUILD -v
- cmake --build build --config Release --target RUN_TESTS -v
- cmake --build build --config Release --target install -v
- os: osx
compiler: clang
env:
TARGET=x86_64-osx
CMAKE_GENERATOR="Unix Makefiles"
script:
- cmake --version
- cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --target ALL_BUILD -v
- cmake --build build --target RUN_TESTS -v
- cmake --build build --config Release --target install -v

- os: windows
env:
TARGET=x86_64-windows
CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
script:
- cmake --version
- cmake -S. -Bbuild -G "Visual Studio 15 2017 Win64" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --config Release --target ALL_BUILD
- cmake --build build --config Release --target RUN_TESTS
- cmake --build build --config Release --target INSTALL

# see: https://docs.travis-ci.com/user/multi-cpu-architectures/
- os: linux
arch: ppc64le
compiler: gcc
env:
TARGET=ppc64le-linux-gnu
script:
- cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
- os: linux
arch: ppc64le
compiler: clang
env:
TARGET=ppc64le-linux-gnu
script:
- cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist

# Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=aarch64-linux-gnu
QEMU_ARCH=aarch64
script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=arm-linux-gnueabihf
QEMU_ARCH=arm
script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, 32-bit ARMv8 for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=armv8l-linux-gnueabihf
QEMU_ARCH=arm
script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=arm-linux-gnueabi
QEMU_ARCH=arm
script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, 64-bit ARMv8 for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=aarch64_be-linux-gnu
QEMU_ARCH=DISABLED
script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=armeb-linux-gnueabihf
QEMU_ARCH=DISABLED
script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux
env:
TOOLCHAIN=LINARO
TARGET=armeb-linux-gnueabi
QEMU_ARCH=DISABLED
script:
- ./scripts/run_integration.sh
- os: linux
env:
TOOLCHAIN=CODESCAPE
TARGET=mips32
QEMU_ARCH=mips
script:
- ./scripts/run_integration.sh
- os: linux
env:
TOOLCHAIN=CODESCAPE
TARGET=mips32el
QEMU_ARCH=mipsel
script:
- ./scripts/run_integration.sh
- os: linux
env:
TOOLCHAIN=CODESCAPE
TARGET=mips64
QEMU_ARCH=mips64
script:
- ./scripts/run_integration.sh
- os: linux
env:
TOOLCHAIN=CODESCAPE
TARGET=mips64el
QEMU_ARCH=mips64el

script:
- cmake --version
- bash -e -x ./scripts/run_integration.sh
script:
- ./scripts/run_integration.sh
Loading