Skip to content

Commit

Permalink
feat(ci): 增加arm ci配置
Browse files Browse the repository at this point in the history
  • Loading branch information
minhanghuang committed Jul 30, 2023
1 parent 1d01126 commit 8ecfadc
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 40 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ubuntu-latest-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: ubuntu-latest v8.0.0 build
run-name: CyberRT v8.0.0 build runner on ubuntu latest 🚀
name: ubuntu-latest v8.0.0 build x86-64
run-name: CyberRT v8.0.0 build runner on ubuntu latest x86-64🚀

on:
pull_request:
branches:
- master
push:
paths:
- 'cmake/**'
- 'cyber/**'
- 'modules/**'
- 'CMakeLists.txt'
- 'scripts/**'
- '.github/workflows/ubuntu-latest-v8.0.0-build.yaml'

jobs:
build-amd-ubuntu22:
Expand All @@ -23,13 +15,19 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update
apt install -y git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
cd /workspace/${{ github.repository }} && ./scripts/install.sh
- name: Build
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
bash -c "cd /workspace/${{ github.repository }} && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
34 changes: 34 additions & 0 deletions .github/workflows/ubuntu18-arrch64-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ubuntu18.04 v8.0.0 build arrch64
run-name: CyberRT v8.0.0 build runner on ubuntu18 arrch64🚀

on:
pull_request:
branches:
- master

jobs:
build-arm-ubuntu18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
env:
DEBIAN_FRONTEND: noninteractive
id: runcmd
with:
arch: aarch64
distro: ubuntu18.04

install: |
apt update
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
git clone --depth 1 --single-branch --branch v8.0.0 https://github.com/minhanghuang/CyberRT.git /root/workspace
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
cd /root/workspace && ./scripts/install.sh
bash -c "cd /root/workspace && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
12 changes: 9 additions & 3 deletions .github/workflows/ubuntu18-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ubuntu18.04 v8.0.0 build
run-name: CyberRT v8.0.0 build runner on ubuntu18 🚀
name: ubuntu18.04 v8.0.0 build x86-64
run-name: CyberRT v8.0.0 build runner on ubuntu18 x86-64🚀

on:
pull_request:
Expand All @@ -23,13 +23,19 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update
apt install -y git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
cd /workspace/${{ github.repository }} && ./scripts/install.sh
- name: Build
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
bash -c "cd /workspace/${{ github.repository }} && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
35 changes: 35 additions & 0 deletions .github/workflows/ubuntu20-arrch64-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ubuntu20.04 v8.0.0 build arrch64
run-name: CyberRT v8.0.0 build runner on ubuntu20 arrch64 🚀

on:
pull_request:
branches:
- master

jobs:
build-arm-ubuntu20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
env:
DEBIAN_FRONTEND: noninteractive
id: runcmd
with:
arch: aarch64
distro: ubuntu20.04

install: |
apt update
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
git clone --depth 1 --single-branch --branch v8.0.0 https://github.com/minhanghuang/CyberRT.git /root/workspace
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
cd /root/workspace && ./scripts/install.sh
bash -c "cd /root/workspace && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
20 changes: 9 additions & 11 deletions .github/workflows/ubuntu20-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: ubuntu20.04 v8.0.0 build
run-name: CyberRT v8.0.0 build runner on ubuntu20 🚀
name: ubuntu20.04 v8.0.0 build x86-64
run-name: CyberRT v8.0.0 build runner on ubuntu20 x86-64🚀

on:
pull_request:
branches:
- master
push:
paths:
- 'cmake/**'
- 'cyber/**'
- 'modules/**'
- 'CMakeLists.txt'
- 'scripts/**'
- '.github/workflows/ubuntu20-v8.0.0-build.yaml'

jobs:
build-amd-ubuntu20:
Expand All @@ -23,13 +15,19 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update
apt install -y git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
cd /workspace/${{ github.repository }} && ./scripts/install.sh
- name: Build
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
bash -c "cd /workspace/${{ github.repository }} && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
33 changes: 33 additions & 0 deletions .github/workflows/ubuntu22-arrch64-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ubuntu22.04 v8.0.0 build arrch64
run-name: CyberRT v8.0.0 build runner on ubuntu22 arrch64🚀

on:
pull_request:
branches:
- master
jobs:
build-arm-ubuntu22:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
env:
DEBIAN_FRONTEND: noninteractive
id: runcmd
with:
arch: aarch64
distro: ubuntu22.04

install: |
apt update
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
git clone --depth 1 --single-branch --branch v8.0.0 https://github.com/minhanghuang/CyberRT.git /root/workspace
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
cd /root/workspace && ./scripts/install.sh
bash -c "cd /root/workspace && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
20 changes: 9 additions & 11 deletions .github/workflows/ubuntu22-v8.0.0-build.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: ubuntu22.04 v8.0.0 build
run-name: CyberRT v8.0.0 build runner on ubuntu22 🚀
name: ubuntu22.04 v8.0.0 build x86-64
run-name: CyberRT v8.0.0 build runner on ubuntu22 x86-64🚀

on:
pull_request:
branches:
- master
push:
paths:
- 'cmake/**'
- 'cyber/**'
- 'modules/**'
- 'CMakeLists.txt'
- 'scripts/**'
- '.github/workflows/ubuntu22-v8.0.0-build.yaml'

jobs:
build-amd-ubuntu22:
Expand All @@ -23,13 +15,19 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update
apt install -y git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
apt install -y lsb-release git wget pkg-config g++ cmake libpoco-dev uuid-dev libncurses5-dev python3-dev
cd /workspace/${{ github.repository }} && ./scripts/install.sh
- name: Build
run: |
echo "-----------------------"
uname -a
lsb_release -a
echo "-----------------------"
bash -c "cd /workspace/${{ github.repository }} && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

| Target | Status |
| ------------- | :-----:|
| Ubuntu18.04 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v8.0.0-build.yaml) |
| Ubuntu20.04 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v8.0.0-build.yaml) |
| Ubuntu22.04 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v8.0.0-build.yaml) |
| Ubuntu latest | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v8.0.0-build.yaml) |
| Ubuntu18.04 x86-64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v8.0.0-build.yaml) |
| Ubuntu20.04 x86-64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v8.0.0-build.yaml) |
| Ubuntu22.04 x86-64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v8.0.0-build.yaml) |
| Ubuntu latest x86-64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v8.0.0-build.yaml) |
| Ubuntu18.04 arrch64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-arrch64-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v8.0.0-build.yaml) |
| Ubuntu20.04 arrch64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-arrch64-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v8.0.0-build.yaml) |
| Ubuntu22.04 arrch64 | [![build v8.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-arrch64-v8.0.0-build.yaml/badge.svg?branch=v8.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v8.0.0-build.yaml) |

## #1 Env

Expand Down

0 comments on commit 8ecfadc

Please sign in to comment.