Skip to content

Commit 8030146

Browse files
committed
ci github: added mips and mips64 corss compile tests
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
1 parent f12b8f1 commit 8030146

3 files changed

Lines changed: 122 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: build default on ubuntu mips gcc
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: '0 */2 * * *'
10+
11+
env:
12+
BUILD_TYPE: Release
13+
LD_LIBRARY_PATH: /usr/mips-linux-gnu/lib
14+
15+
jobs:
16+
build:
17+
name: Test on ${{matrix.os}}
18+
runs-on: ${{matrix.os}}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-22.04]
22+
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: install dependencies
30+
run: |
31+
sudo apt update
32+
sudo apt install cmake make qemu-user-binfmt \
33+
gcc gcc-mips-linux-gnu
34+
35+
- name: configure cmake
36+
run: |
37+
cmake -B ${{github.workspace}}/build \
38+
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
39+
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
40+
-D CMAKE_C_COMPILER=mips-linux-gnu-gcc \
41+
-D HOST_C_COMPILER=gcc \
42+
-D BFDEV_STRICT=ON \
43+
-D BFDEV_EXAMPLES=ON \
44+
-D BFDEV_TESTSUITE=ON
45+
46+
- name: make
47+
run: |
48+
cmake --build ${{github.workspace}}/build \
49+
--config ${{env.BUILD_TYPE}}
50+
51+
- name: install
52+
run: |
53+
cmake --build ${{github.workspace}}/build \
54+
--config ${{env.BUILD_TYPE}} -- install
55+
56+
- name: ctest
57+
working-directory: ${{github.workspace}}/build
58+
run: |
59+
sudo ln -s /usr/mips-linux-gnu/lib/ld.so.1 /lib64
60+
ctest -C ${{env.BUILD_TYPE}} -V
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: build default on ubuntu mips64 gcc
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: '0 */2 * * *'
10+
11+
env:
12+
BUILD_TYPE: Release
13+
LD_LIBRARY_PATH: /usr/mips64-linux-gnuabi64/lib
14+
15+
jobs:
16+
build:
17+
name: Test on ${{matrix.os}}
18+
runs-on: ${{matrix.os}}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-22.04]
22+
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: install dependencies
30+
run: |
31+
sudo apt update
32+
sudo apt install cmake make qemu-user-binfmt \
33+
gcc gcc-mips64-linux-gnuabi64
34+
35+
- name: configure cmake
36+
run: |
37+
cmake -B ${{github.workspace}}/build \
38+
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
39+
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
40+
-D CMAKE_C_COMPILER=mips64-linux-gnuabi64-gcc \
41+
-D HOST_C_COMPILER=gcc \
42+
-D BFDEV_STRICT=ON \
43+
-D BFDEV_EXAMPLES=ON \
44+
-D BFDEV_TESTSUITE=ON
45+
46+
- name: make
47+
run: |
48+
cmake --build ${{github.workspace}}/build \
49+
--config ${{env.BUILD_TYPE}}
50+
51+
- name: install
52+
run: |
53+
cmake --build ${{github.workspace}}/build \
54+
--config ${{env.BUILD_TYPE}} -- install
55+
56+
- name: ctest
57+
working-directory: ${{github.workspace}}/build
58+
run: |
59+
sudo ln -s /usr/mips64-linux-gnuabi64/lib/ld.so.1 /lib
60+
ctest -C ${{env.BUILD_TYPE}} -V

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ bfdev is a high-performance, aesthetically pleasing, and portable infrastructure
1616
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/windows.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/windows.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/windows.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/windows.yml?query=branch%3Adevel) | Build default config on Windows |
1717
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-armv7-gcc.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-armv7-gcc.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-armv7-gcc.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-armv7-gcc.yml?query=branch%3Adevel) | Cross build ARMv7 default on Ubuntu GCC |
1818
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-aarch64-gcc.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-aarch64-gcc.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-aarch64-gcc.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-aarch64-gcc.yml?query=branch%3Adevel) | Cross build AArch64 default on Ubuntu GCC |
19+
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips-gcc.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips-gcc.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips-gcc.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips-gcc.yml?query=branch%3Adevel) | Cross build MIPS default on Ubuntu GCC |
20+
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips64-gcc.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips64-gcc.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips64-gcc.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/ubuntu-mips64-gcc.yml?query=branch%3Adevel) | Cross build MIPS64 default on Ubuntu GCC |
1921
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/codeql.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/codeql.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/codeql.yml?query=branch%3Adevel) | Code analyse on codeql |
2022

2123
## Why Choose

0 commit comments

Comments
 (0)