Skip to content

Commit 901ad4f

Browse files
Add GA
Adds a github actions job to upload the minimal tar.gz to our S3 bucket such that we can use it in bazel.
1 parent 0c0d504 commit 901ad4f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/upload-to-s3.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Upload minimal tar to S3
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch: {}
9+
jobs:
10+
upload_tar_to_s3:
11+
runs-on: ubuntu-24.04
12+
13+
permissions:
14+
contents: read
15+
id-token: write
16+
17+
steps:
18+
- name: Configure AWS credentials
19+
uses: aws-actions/configure-aws-credentials@v5
20+
with:
21+
aws-region: ${{ vars.RP_AWS_CRED_REGION }}
22+
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
23+
24+
- uses: actions/checkout@v5
25+
26+
- name: Install java
27+
run: sudo apt-get update && sudo apt-get install -y maven default-jdk
28+
29+
- name: Build binaries
30+
run: mvn clean compile package -DskipTests
31+
32+
- name: Upload to S3 bucket
33+
if: github.event_name == 'push'
34+
run: |
35+
aws s3 cp package-minimal/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz s3://vectorized-public/dependencies/omb/omb_minimal_${{ github.sha }}.tar.gz

0 commit comments

Comments
 (0)