Skip to content

Commit

Permalink
Add new GitHub action with single job to build Platform Services
Browse files Browse the repository at this point in the history
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
  • Loading branch information
paulcruz74 authored and facebook-github-bot committed Aug 23, 2024
1 parent 7bb5e9f commit 697f05c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/platform-services.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 697f05c

Please sign in to comment.