Skip to content

Commit 3067b82

Browse files
committed
ci github: added arm generic platform workflow
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
1 parent 04a70c3 commit 3067b82

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: build default on generic arm 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+
14+
jobs:
15+
build:
16+
name: Test on ${{matrix.os}}
17+
runs-on: ${{matrix.os}}
18+
strategy:
19+
matrix:
20+
os: [ubuntu-22.04]
21+
22+
steps:
23+
- name: checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: install dependencies
29+
run: |
30+
sudo apt update
31+
sudo apt install cmake make \
32+
gcc gcc-arm-none-eabi
33+
34+
- name: configure cmake
35+
run: |
36+
cmake -B ${{github.workspace}}/build \
37+
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
38+
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
39+
-D CMAKE_C_COMPILER=arm-none-eabi-gcc \
40+
-D CMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
41+
-D CMAKE_SYSTEM_NAME=Generic \
42+
-D HOST_C_COMPILER=gcc \
43+
-D BFDEV_STRICT=ON \
44+
-D BFDEV_BUILD_SHARED=OFF
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bfdev is a high-performance, aesthetically pleasing, and portable infrastructure
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 |
1919
| [![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 |
2020
| [![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 |
21+
| [![build status](https://github.com/openbfdev/bfdev/actions/workflows/generic-arm-gcc.yml/badge.svg?branch=master)](https://github.com/openbfdev/bfdev/actions/workflows/generic-arm-gcc.yml?query=branch%3Amaster) | [![build status](https://github.com/openbfdev/bfdev/actions/workflows/generic-arm-gcc.yml/badge.svg?branch=devel)](https://github.com/openbfdev/bfdev/actions/workflows/generic-arm-gcc.yml?query=branch%3Adevel) | Cross build ARM default on Generic GCC |
2122
| [![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 |
2223

2324
## Why Choose

0 commit comments

Comments
 (0)