Build QSFP Service - Hourly #1698
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build QSFP Service - Hourly | |
run-name: Build QSFP Service - Hourly | |
on: | |
pull_request: | |
# Allow manually triggering the workflow | |
workflow_dispatch: | |
# Also schedule the workflow to run every 3 hours during day only | |
# ShipIt job will sync hourly around HH:21, so schedule the run with 15 minute offset | |
schedule: | |
# Run daily at 1:36AM UTC = 6:36PM PDT | |
# Run daily at 1:36PM UTC = 6:36AM PDT | |
# Run daily at 4:36PM UTC = 9:36AM PDT | |
# Run daily at 7:36PM UTC = 12:36PM PDT | |
# Run daily at 10:36PM UTC = 3:36PM PDT | |
- cron: '36 1,13,16,19,22 * * *' | |
jobs: | |
Qsfp-Service-Build-Hourly: | |
runs-on: 32-core-ubuntu | |
steps: | |
- run: echo "Confirming hardware specications:"; sudo lscpu | |
- name: Clean workspace | |
run: sudo rm -rf ${{ github.workspace }}/* | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Run Docker-based build for FBOSS | |
run: > | |
sudo | |
./fboss/oss/scripts/docker-build.py | |
--scratch-path | |
${{ github.workspace }}/build-output | |
--target | |
qsfp_targets | |
--no-docker-output | |
--no-system-deps | |
- name: Package FBOSS binaries and library dependencies | |
run: > | |
sudo | |
./fboss/oss/scripts/package-fboss.py | |
--scratch-path | |
${{ github.workspace }}/build-output | |
--compress | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fboss | |
path: ${{ github.workspace }}/build-output/fboss_bins.tar.zst | |
# Explicitly set the retention at the object level | |
retention-days: 14 |