This file contains hidden or 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: Upload minimal tar to S3 | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: {} | ||
| jobs: | ||
| upload_tar_to_s3: | ||
| # Let's make this fast by using a beefy runner. | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| steps: | ||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v5 | ||
| with: | ||
| aws-region: ${{ vars.RP_AWS_CRED_REGION }} | ||
| role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }} | ||
| - uses: actions/checkout@v5 | ||
| - name: Install java | ||
| run: sudo apt-get update && sudo apt-get install -y maven default-jdk | ||
| - name: Build binaries | ||
| run: mvn clean compile package -DskipTests | ||
| - name: Upload to S3 bucket | ||
| run: | | ||
| aws s3 cp package-minimal/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz s3://perf-team-public/tmp/omb_minimal_${{ github.sha }}.tar.gz | ||