Skip to content

Commit d425266

Browse files
committed
ci(github): Add workflows
1 parent 440452e commit d425266

File tree

7 files changed

+189
-1
lines changed

7 files changed

+189
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: aarch64 Linux
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
aarch64:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
targets: [
17+
[aarch64-linux-gnu],
18+
[aarch64_be-linux-gnu]
19+
]
20+
fail-fast: false
21+
env:
22+
TARGET: ${{ matrix.targets[0] }}
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Install Ninja
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install ninja-build
29+
- name: Build
30+
run: ./scripts/run_integration.sh build
31+
- name: Test
32+
run: ./scripts/run_integration.sh test

.github/workflows/arm_linux.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: arm Linux
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
arm:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
targets: [
17+
[arm-linux-gnueabihf],
18+
[armv8l-linux-gnueabihf],
19+
[arm-linux-gnueabi],
20+
[armeb-linux-gnueabihf],
21+
[armeb-linux-gnueabi]
22+
]
23+
fail-fast: false
24+
env:
25+
TARGET: ${{ matrix.targets[0] }}
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Install Ninja
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install ninja-build
32+
- name: Build
33+
run: ./scripts/run_integration.sh build
34+
- name: Test
35+
run: ./scripts/run_integration.sh test

.github/workflows/mips_linux.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: mips Linux
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
mips:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
targets: [
17+
[mips32],
18+
[mips32el],
19+
[mips64],
20+
[mips64el]
21+
]
22+
fail-fast: false
23+
env:
24+
TARGET: ${{ matrix.targets[0] }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Install Ninja
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install ninja-build
31+
- name: Build
32+
run: ./scripts/run_integration.sh build
33+
- name: Test
34+
run: ./scripts/run_integration.sh test
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: x86 Windows
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
msvc:
13+
runs-on: windows-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Configure
17+
run: cmake -S. -Bbuild -G "Visual Studio 16 2019" -DCMAKE_CONFIGURATION_TYPES=Release
18+
- name: Build
19+
run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
20+
- name: Test
21+
run: cmake --build build --config Release --target RUN_TESTS -- /maxcpucount
22+
- name: Install
23+
run: cmake --build build --config Release --target INSTALL -- /maxcpucount

.github/workflows/x86_darwin.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: x86 Darwin
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
xcode:
13+
runs-on: macos-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Check cmake
17+
run: cmake --version
18+
- name: Configure
19+
run: cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
20+
- name: Build
21+
run: cmake --build build --config Release --target ALL_BUILD -v
22+
- name: Test
23+
run: cmake --build build --config Release --target RUN_TESTS -v
24+
- name: Install
25+
run: cmake --build build --config Release --target install -v
26+
make:
27+
runs-on: macos-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Check cmake
31+
run: cmake --version
32+
- name: Configure
33+
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
34+
- name: Build
35+
run: cmake --build build --target all -v
36+
- name: Test
37+
run: cmake --build build --target test -v
38+
- name: Install
39+
run: cmake --build build --target install -v

.github/workflows/freebsd.yml renamed to .github/workflows/x86_freebsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: FreeBSD
1+
name: x86 FreeBSD
22

33
on:
44
push:

.github/workflows/x86_linux.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: x86 Linux
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# min hours day(month) month day(week)
8+
- cron: '0 0 7,22 * *'
9+
10+
jobs:
11+
# Building using the github runner environement directly.
12+
make:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Check cmake
17+
run: cmake --version
18+
- name: Configure
19+
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
20+
- name: Build
21+
run: cmake --build build --target all -v
22+
- name: Test
23+
run: cmake --build build --target test -v
24+
- name: Install
25+
run: cmake --build build --target install -v -- DESTDIR=install

0 commit comments

Comments
 (0)