Skip to content

Commit

Permalink
Break build CI into separate build jobs, for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Oct 3, 2023
1 parent d53838f commit 7befbd9
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: CI
on: [push]
jobs:
CI:

Lint:
runs-on: ubuntu-22.04 # latest at time of writing
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -32,11 +33,27 @@ jobs:
python scripts/build-benchmarks.py
git diff --exit-code
- name: Build s3-benchrunner-c
run: python runners/s3-benchrunner-c/scripts/build.py --build-dir ${{runner.temp}}/build/c
Build:
runs-on: ubuntu-22.04 # latest at time of writing
strategy:
matrix:
runner:
- s3-benchrunner-c
- s3-benchrunner-cli
- s3-benchrunner-crt-java
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '3.9' # default version on Amazon Linux 2023

- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17' # default version on Amazon Linux 2023

- name: Build s3-benchrunner-crt-java
run: python runners/s3-benchrunner-crt-java/scripts/build.py --build-dir ${{runner.temp}}/build/crt-java
- run: python -m pip install -r scripts/requirements.txt

- name: Build s3-benchrunner-cli
run: python runners/s3-benchrunner-cli/scripts/build.py --build-dir ${{runner.temp}}/build/cli
- name: Build
run: python runners/${{ matrix.runner }}/scripts/build.py --build-dir ${{runner.temp}}/build

0 comments on commit 7befbd9

Please sign in to comment.