Skip to content

Commit

Permalink
github_ci: simplify config
Browse files Browse the repository at this point in the history
Update pipeline config.

Signed-off-by: Matias Elo <[email protected]>
  • Loading branch information
MatiasElo committed Sep 26, 2024
1 parent d6096ef commit b39a03d
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/ci-pipeline-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: CI arm64

# github.repository has been used to ensure CI is only run on the repo where
# self-hosted runners are installed. This will prevent ah-ubuntu_22_04-c7g_2x-50
# CI failing on forks.
# self-hosted runners are installed. This will prevent CI pipeline failing on
# forks.

on: [push, pull_request, merge_group]
env:
ARCH: arm64
CC: gcc
CONTAINER_NAMESPACE: ghcr.io/opendataplane/odp-docker-images
OS: ubuntu_20.04
RUNNER: ah-ubuntu_22_04-c7g_2x-50

jobs:
Build_gcc:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -36,7 +37,7 @@ jobs:

Build_clang:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: "$env.RUNNER"
strategy:
fail-fast: false
matrix:
Expand All @@ -60,7 +61,7 @@ jobs:

Build_static_u22:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: ${{ env.RUNNER }}
env:
OS: ubuntu_22.04
CONF: "--disable-shared --without-openssl --without-pcap"
Expand All @@ -78,7 +79,7 @@ jobs:

Build_OS:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -93,7 +94,7 @@ jobs:

Build_gcc_u22:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
env:
OS: ubuntu_22.04
strategy:
Expand All @@ -110,7 +111,7 @@ jobs:

Build_out-of-tree:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}"
Expand All @@ -120,7 +121,7 @@ jobs:

Build_XDP:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
env:
CONF: "--enable-xdp"
OS: ubuntu_22.04
Expand All @@ -137,7 +138,7 @@ jobs:

Run_distcheck:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -151,7 +152,7 @@ jobs:

Run_gcc:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -176,7 +177,7 @@ jobs:

Run_clang:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -195,7 +196,7 @@ jobs:

Run_CFLAGS:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -210,7 +211,7 @@ jobs:

Run_OS:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
strategy:
fail-fast: false
matrix:
Expand All @@ -224,7 +225,7 @@ jobs:

Run_sched_config:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -234,7 +235,7 @@ jobs:

Run_stash_config:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -244,7 +245,7 @@ jobs:

Run_scheduler_sp:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -254,7 +255,7 @@ jobs:

Run_scheduler_scalable:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -264,7 +265,7 @@ jobs:

Run_process_mode:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -275,7 +276,7 @@ jobs:

Run_inline_timer:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -286,7 +287,7 @@ jobs:

Run_packet_align:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -297,7 +298,7 @@ jobs:

Run_dpdk-19_11:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -307,7 +308,7 @@ jobs:

Run_dpdk-20_11:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand All @@ -317,7 +318,7 @@ jobs:

Run_dpdk-21_11:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
runs-on: ah-ubuntu_22_04-c7g_2x-50
runs-on: $env.RUNNER
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
Expand Down

0 comments on commit b39a03d

Please sign in to comment.