Skip to content

Commit

Permalink
[action]enable build jobs for sonic-otn
Browse files Browse the repository at this point in the history
sonic-otn temporary pipeline configuration

[action]enable build jobs for sonic-otn
  • Loading branch information
sonic-otn committed Apr 10, 2024
1 parent fc7afa2 commit 67a8f66
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sonic-otn-ot-pre-202411-vs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ot-pre-202411-vs-build

on:
push:
branches: [ "otn_pre_202411" ]
pull_request:
branches: [ "otn_pre_202411" ]
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: sonic-otn-server

steps:
- uses: actions/checkout@v3
with:
path: 202411_${{github.run_number}}

- name: build
run: |
cd 202411_${{github.run_number}}
make init
make configure PLATFORM=ot-vs
make SONIC_BUILD_JOBS=8 target/sonic-ot-vs.img.gz
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: otn-202411-artifact
path: |
202411_${{github.run_number}}/sonic-installer.img
202411_${{github.run_number}}/target/*.img.gz
24 changes: 12 additions & 12 deletions rules/config
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ DEFAULT_PASSWORD = YourPaSsWoRd

# SONIC_USE_PDDF_FRAMEWORK - Use PDDF generic drivers and plugins
# Uncomment next line to enable:
SONIC_USE_PDDF_FRAMEWORK = y
SONIC_USE_PDDF_FRAMEWORK = n

# SONIC_ROUTING_STACK - specify the routing-stack being elected to drive SONiC's control-plane.
# Supported routing stacks on SONiC are:
Expand Down Expand Up @@ -137,7 +137,7 @@ INCLUDE_SYSTEM_TELEMETRY = n
INCLUDE_ICCPD = n

# INCLUDE_SFLOW - build docker-sflow for sFlow support
INCLUDE_SFLOW = y
INCLUDE_SFLOW = n

# INCLUDE_MGMT_FRAMEWORK - build docker-sonic-mgmt-framework for CLI and REST server support
INCLUDE_MGMT_FRAMEWORK = y
Expand All @@ -150,10 +150,10 @@ ENABLE_HOST_SERVICE_ON_START = y
INCLUDE_RESTAPI ?= n

# INCLUDE_NAT - build docker-nat for nat support
INCLUDE_NAT = y
INCLUDE_NAT = n

# INCLUDE_DHCP_RELAY - build and install dhcp-relay package
INCLUDE_DHCP_RELAY = y
INCLUDE_DHCP_RELAY = n

# INCLUDE_DHCP_SERVER - build and install dhcp-server package
INCLUDE_DHCP_SERVER ?= n
Expand All @@ -169,19 +169,19 @@ ENABLE_AUTO_TECH_SUPPORT = y
# ENABLE_TRANSLIB_WRITE = y

# ENABLE_NATIVE_WRITE - Enable native write/config operations via the gNMI interface.
ENABLE_NATIVE_WRITE = y
ENABLE_NATIVE_WRITE = n

# INCLUDE_MACSEC - build docker-macsec for macsec support
INCLUDE_MACSEC = y
INCLUDE_MACSEC = n

# INCLUDE_GBSYNCD - build docker-gbsyncd-* for gearbox support
INCLUDE_GBSYNCD ?= y
INCLUDE_GBSYNCD ?= n

# INCLUDE_TEAMD - build docker-teamd for LAG protocol support
INCLUDE_TEAMD ?= y
INCLUDE_TEAMD ?= n

# INCLUDE_ROUTER_ADVERTISER - build docker-router-advertiser for router advertisements support
INCLUDE_ROUTER_ADVERTISER ?= y
INCLUDE_ROUTER_ADVERTISER ?= n

# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to
# run as worker node in kubernetes cluster.
Expand Down Expand Up @@ -288,10 +288,10 @@ REGISTRY_SERVER ?= sonicdev-microsoft.azurecr.io
REGISTRY_SERVER_PATH ?=

# BUILD_MULTIASIC_KVM - if set to y multi-asic KVM images will be generated.
BUILD_MULTIASIC_KVM = n
BUILD_MULTIASIC_KVM = y

# INCLUDE_MUX - build docker-mux for dual ToR (Gemini)
INCLUDE_MUX = y
INCLUDE_MUX = n

# ENABLE_ASAN - enable address sanitizer
ENABLE_ASAN ?= n
Expand All @@ -307,7 +307,7 @@ ENABLE_BOOTCHART = n

# INCLUDE_FIPS - support FIPS feature, only for amd64 or arm64, armhf not supported yet
# ENABLE_FIPS - support FIPS flag, if enabled, no additional config requred for the image to support FIPS
INCLUDE_FIPS ?= y
INCLUDE_FIPS ?= n
ENABLE_FIPS ?= n

# SONIC_SLAVE_DOCKER_DRIVER - set the sonic slave docker storage driver
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_kvm_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ trap on_exit EXIT
trap on_error ERR

echo "Installing SONiC"

exit 0
/usr/bin/kvm -m $MEM \
-name "onie" \
-boot "order=cd,once=d" -cdrom "$ONIE_RECOVERY_ISO" \
Expand Down

0 comments on commit 67a8f66

Please sign in to comment.