Update .github/workflows/build_push.yml
This commit is contained in:
parent
6038958115
commit
da1cdc169b
1 changed files with 2 additions and 19 deletions
21
.github/workflows/build_push.yml
vendored
21
.github/workflows/build_push.yml
vendored
|
@ -30,12 +30,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
token: ${{ secrets.BOT_PAT }}
|
token: ${{ secrets.BOT_PAT }}
|
||||||
|
|
||||||
- name: Get number of modules
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
projects=(src/*/*)
|
|
||||||
echo "NUM_INDIVIDUAL_MODULES=${#projects[@]}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
# Temporary pause because of leak of tj-actions/changed-files
|
# Temporary pause because of leak of tj-actions/changed-files
|
||||||
# - name: Find lib changes
|
# - name: Find lib changes
|
||||||
|
@ -62,21 +56,10 @@ jobs:
|
||||||
# chmod +x ./.github/scripts/bump-versions.py
|
# chmod +x ./.github/scripts/bump-versions.py
|
||||||
# ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
|
# ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
|
||||||
|
|
||||||
- id: generate-matrices
|
build:
|
||||||
name: Create output matrices
|
name: Build
|
||||||
run: |
|
|
||||||
echo "Generating matrices"
|
|
||||||
numIndividualModules=$(echo "$NUM_INDIVIDUAL_MODULES")
|
|
||||||
chunkSize=$(echo "$CI_CHUNK_SIZE")
|
|
||||||
numChunks=$(( (numIndividualModules + chunkSize - 1) / chunkSize ))
|
|
||||||
echo "::set-output name=individualMatrix::{\"chunk\":["$(seq -s , 0 $((numChunks-1)))"]}"
|
|
||||||
|
|
||||||
build_individual:
|
|
||||||
name: Build individual modules
|
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
strategy:
|
|
||||||
matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main branch
|
- name: Checkout main branch
|
||||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue