Skip to content

Commit

Permalink
ci(github): Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 26, 2021
1 parent 440452e commit d425266
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 1 deletion.
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

0 comments on commit d425266

Please sign in to comment.