Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: o1-labs/o1js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6da2b1e1f17fcf1bf6ccca9e1e694527612503ff
Choose a base ref
..
head repository: o1-labs/o1js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 53dae5fe841a610b2b23958ceefc9233678acc4a
Choose a head ref
Showing with 3 additions and 25 deletions.
  1. +3 −25 .github/workflows/build-action.yml
28 changes: 3 additions & 25 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
@@ -12,8 +12,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
test_count: ${{ steps.count_tests.outputs.test_count }}
chunk_count: ${{ steps.calculate_chunks.outputs.chunk_count }}
chunk_array: ${{ steps.create_chunk_array.outputs.chunk_array }}
chunk_count: 8 # This is hardcoded to 8, but it can be changed to any number.
steps:
- name: Checkout repository with submodules
uses: actions/checkout@v4
@@ -48,27 +47,6 @@ jobs:
echo "test_count=${TEST_COUNT}" >> $GITHUB_OUTPUT
echo "Total test count: ${TEST_COUNT}"
- name: Calculate number of chunks
id: calculate_chunks
run: |
test_count=${{ steps.count_tests.outputs.test_count }}
if [ $test_count -le 10 ]; then
echo "chunk_count=1" >> $GITHUB_OUTPUT
elif [ $test_count -le 20 ]; then
echo "chunk_count=2" >> $GITHUB_OUTPUT
elif [ $test_count -le 40 ]; then
echo "chunk_count=4" >> $GITHUB_OUTPUT
else
echo "chunk_count=8" >> $GITHUB_OUTPUT
fi
- name: Create chunk array
id: create_chunk_array
run: |
chunk_count=${{ steps.calculate_chunks.outputs.chunk_count }}
chunk_array=$(seq -s ',' 1 $chunk_count)
echo "chunk_array=[${chunk_array}]" >> $GITHUB_OUTPUT
- name: Cache repository
uses: actions/cache@v4
with:
@@ -135,7 +113,7 @@ jobs:
strategy:
fail-fast: false
matrix:
chunk: ${{ fromJson(needs.Prepare.outputs.chunk_array) }}
chunk: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- name: Restore repository
uses: actions/cache@v4
@@ -164,7 +142,7 @@ jobs:
env:
TOTAL_TESTS: ${{ needs.Prepare.outputs.test_count }}
CHUNK: ${{ matrix.chunk }}
CHUNKS: ${{ needs.Prepare.outputs.chunk_count }}
CHUNKS: 8
run: |
echo "Total tests: $TOTAL_TESTS"
echo "Current chunk: $CHUNK"