From 697f05c93dc9a4e4b271fa19868f67cb4a8f0553 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Fri, 23 Aug 2024 11:21:46 -0700 Subject: [PATCH] Add new GitHub action with single job to build Platform Services Summary: This adds a new GitHub action to build the platform services binaries and tests. Diffs later in the stack will also add the jobs to execute the tests. Reviewed By: srikrishnagopu Differential Revision: D61721135 fbshipit-source-id: 9187010c496b6d36780201f9f0b075a22e3e0d1f --- .github/workflows/platform-services.yml | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/platform-services.yml diff --git a/.github/workflows/platform-services.yml b/.github/workflows/platform-services.yml new file mode 100644 index 0000000000000..41906d8fa4166 --- /dev/null +++ b/.github/workflows/platform-services.yml @@ -0,0 +1,42 @@ +name: Build & Test Platform Services +run-name: Build & Test Platform Services +on: + # Allow on pull request + pull_request: + # Allow manually triggering the workflow + workflow_dispatch: + # Also schedule the workflow to run hourly automatically + # ShipIt job will sync hourly around HH:21, so schedule the run with 15 minute offset + schedule: + - cron: '36 * * * *' +jobs: + Platform-Services-Service-Build: + runs-on: 32-core-ubuntu + steps: + - run: echo "Confirming hardware specications:"; sudo lscpu + - 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 + github_actions_fboss_platform_services + --no-docker-output + --no-system-deps + --env-var + GITHUB_ACTIONS_BUILD + - 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.tar.gz + path: ${{ github.workspace }}/build-output/fboss_bins.tar.gz