Skip to content

Commit 3c28deb

Browse files
committed
disable build workflows, update main build job
1 parent cf858c0 commit 3c28deb

File tree

6 files changed

+477
-520
lines changed

6 files changed

+477
-520
lines changed

.github/workflows/afxdp_build.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
1-
name: Ubuntu AF_XDP build
1+
# name: Ubuntu AF_XDP build
22

3-
on:
4-
# allow manually trigger
5-
workflow_dispatch:
6-
push:
7-
branches:
8-
- main
9-
- 'maint-**'
10-
pull_request:
11-
branches:
12-
- main
13-
- 'maint-**'
3+
# on:
4+
# # allow manually trigger
5+
# workflow_dispatch:
6+
# push:
7+
# branches:
8+
# - main
9+
# - 'maint-**'
10+
# pull_request:
11+
# branches:
12+
# - main
13+
# - 'maint-**'
1414

15-
env:
16-
# Customize the env if
17-
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/lib64/pkgconfig
18-
DPDK_VERSION: 25.03
15+
# env:
16+
# # Customize the env if
17+
# PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/lib64/pkgconfig
18+
# DPDK_VERSION: 25.03
1919

20-
permissions:
21-
contents: read
20+
# permissions:
21+
# contents: read
2222

23-
jobs:
24-
changes:
25-
runs-on: ubuntu-latest
26-
permissions:
27-
pull-requests: read
28-
outputs:
29-
changed: ${{ steps.filter.outputs.afxdp_build == 'true' }}
30-
steps:
31-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
# jobs:
24+
# changes:
25+
# runs-on: ubuntu-latest
26+
# permissions:
27+
# pull-requests: read
28+
# outputs:
29+
# changed: ${{ steps.filter.outputs.afxdp_build == 'true' }}
30+
# steps:
31+
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232

33-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v2
34-
id: filter
35-
with:
36-
filters: .github/path_filters.yml
33+
# - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v2
34+
# id: filter
35+
# with:
36+
# filters: .github/path_filters.yml
3737

38-
build:
39-
needs: changes
40-
if: ${{ github.repository == 'OpenVisualCloud/Media-Transport-Library' && needs.changes.outputs.changed == 'true' }}
41-
runs-on: ${{ matrix.os }}
42-
timeout-minutes: 60
43-
container:
44-
image: ubuntu:latest
45-
strategy:
46-
matrix:
47-
os: [ubuntu-latest]
38+
# build:
39+
# needs: changes
40+
# if: ${{ github.repository == 'OpenVisualCloud/Media-Transport-Library' && needs.changes.outputs.changed == 'true' }}
41+
# runs-on: ${{ matrix.os }}
42+
# timeout-minutes: 60
43+
# container:
44+
# image: ubuntu:latest
45+
# strategy:
46+
# matrix:
47+
# os: [ubuntu-latest]
4848

49-
steps:
50-
- name: Harden Runner
51-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
52-
with:
53-
egress-policy: audit
49+
# steps:
50+
# - name: Harden Runner
51+
# uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
52+
# with:
53+
# egress-policy: audit
5454

55-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
56-
- uses: DoozyX/clang-format-lint-action@v0.20
57-
with:
58-
clangFormatVersion: '14'
59-
source: '.'
60-
extensions: 'hpp,h,cpp,c,cc'
55+
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
56+
# - uses: DoozyX/clang-format-lint-action@v0.20
57+
# with:
58+
# clangFormatVersion: '14'
59+
# source: '.'
60+
# extensions: 'hpp,h,cpp,c,cc'
6161

62-
- name: Install the build dependency
63-
run: |
64-
apt-get update -y
65-
apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev
66-
apt-get install -y make m4 clang llvm zlib1g-dev libelf-dev libcap-ng-dev gcc-multilib
67-
apt-get install -y systemtap-sdt-dev
62+
# - name: Install the build dependency
63+
# run: |
64+
# apt-get update -y
65+
# apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev
66+
# apt-get install -y make m4 clang llvm zlib1g-dev libelf-dev libcap-ng-dev gcc-multilib
67+
# apt-get install -y systemtap-sdt-dev
6868

69-
- name: Install DPDK
70-
uses: ./.github/actions/dpdk
71-
with:
72-
version: ${{ env.DPDK_VERSION }}
69+
# - name: Install DPDK
70+
# uses: ./.github/actions/dpdk
71+
# with:
72+
# version: ${{ env.DPDK_VERSION }}
7373

7474

75-
- name: Checkout xdp-tools
76-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
77-
with:
78-
repository: 'xdp-project/xdp-tools'
79-
path: xdp-tools
80-
submodules: recursive
75+
# - name: Checkout xdp-tools
76+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
77+
# with:
78+
# repository: 'xdp-project/xdp-tools'
79+
# path: xdp-tools
80+
# submodules: recursive
8181

82-
- name: Build and install xdp-tools
83-
working-directory: xdp-tools
84-
run: |
85-
./configure
86-
make && sudo make install
87-
cd lib/libbpf/src && sudo make install
82+
# - name: Build and install xdp-tools
83+
# working-directory: xdp-tools
84+
# run: |
85+
# ./configure
86+
# make && sudo make install
87+
# cd lib/libbpf/src && sudo make install
8888

89-
- name: Build
90-
working-directory: "${{ github.workspace }}"
91-
run: |
92-
./build.sh
89+
# - name: Build
90+
# working-directory: "${{ github.workspace }}"
91+
# run: |
92+
# ./build.sh
9393

94-
- name: Build with debug
95-
working-directory: "${{ github.workspace }}"
96-
run: |
97-
rm build -rf
98-
./build.sh debug
94+
# - name: Build with debug
95+
# working-directory: "${{ github.workspace }}"
96+
# run: |
97+
# rm build -rf
98+
# ./build.sh debug

.github/workflows/base_build.yml

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ on:
1414

1515
permissions:
1616
contents: read
17-
env:
18-
DPDK_VERSION: 25.03
17+
1918
jobs:
2019
changes:
2120
runs-on: ubuntu-latest
@@ -31,7 +30,7 @@ jobs:
3130
with:
3231
filters: .github/path_filters.yml
3332

34-
build:
33+
ubuntu-build:
3534
needs: changes
3635
if: ${{ github.repository == 'OpenVisualCloud/Media-Transport-Library' && needs.changes.outputs.changed == 'true' }}
3736
runs-on: ${{ matrix.os }}
@@ -48,34 +47,11 @@ jobs:
4847
with:
4948
egress-policy: audit
5049

51-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52-
- uses: DoozyX/clang-format-lint-action@v0.20
53-
with:
54-
clangFormatVersion: '14'
55-
source: '.'
56-
extensions: 'hpp,h,cpp,c,cc'
57-
- name: Install the build dependency
58-
run: |
59-
apt-get update -y
60-
apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev systemtap-sdt-dev llvm clang
61-
apt-get install -y doxygen
62-
apt-get install -y make m4 clang llvm zlib1g-dev libelf-dev libcap-ng-dev libcap2-bin gcc-multilib
63-
64-
- name: install DPDK
65-
uses: ./.github/actions/dpdk
66-
with:
67-
version: ${{ env.DPDK_VERSION }}
68-
69-
- name: Git config
70-
working-directory: "${{ github.workspace }}"
71-
run: |
72-
git config --global user.email "you@example.com"
73-
git config --global user.name "Your Name"
74-
75-
- name: Build
76-
working-directory: "${{ github.workspace }}"
77-
run: |
78-
./build.sh
50+
- name: Build with release
51+
working-directory: "${{ github.workspace }}/.github/scripts"
52+
run: ./setup_environment.sh
53+
env:
54+
MTL_BUILD_AND_INSTALL: 1
7955

8056
- name: 'upload release build artifacts'
8157
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -84,12 +60,7 @@ jobs:
8460
path: '${{ github.workspace }}/build/'
8561

8662
- name: Build with debug
87-
run: |
88-
rm build -rf
89-
./build.sh debug
90-
91-
- name: doxygen
92-
run: |
93-
cd doc/doxygen
94-
./build-doc.sh
95-
cd ../../
63+
working-directory: "${{ github.workspace }}/.github/scripts"
64+
run: ./setup_environment.sh
65+
env:
66+
MTL_BUILD_AND_INSTALL_DEBUG: 1

0 commit comments

Comments
 (0)