Skip to content

Commit

Permalink
fixup! ci(docker): run each platform on a different worker
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jan 10, 2024
1 parent 453fd99 commit f1a9c5f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# The .ts scripts depend upon this
- run: npm install --global tsx
# Enable corepack for packageManager config
- run: corepack enable
- run: yarn install

- name: build test images ${{ matrix.platform }} == ${{ env.DEFAULT_PLATFORM }}
run: |
docker info
node_modules/.bin/synthetic-chain build ${{ matrix.platform == env.DEFAULT_PLATFORM && ' ' || '--dry' }}
- name: run test images
if: ${{ matrix.platform == env.DEFAULT_PLATFORM }}
run: node_modules/.bin/synthetic-chain test

- name: Compute tags
- name: Compute Docker tags
id: docker-tags
run: |
sep=
Expand All @@ -116,10 +102,24 @@ jobs:
if test -z "$sep"; then
# The first tag (suffixed with our architecture) is the one we build.
sep=,
echo "tag=$TAG-$uarch" >> $GITHUB_OUTPUT
echo "tag=$TAG-$uarch" | tee -a $GITHUB_OUTPUT
fi
done
echo "tags=$SUFFIXED" >> $GITHUB_OUTPUT
echo "tags=$SUFFIXED" | tee -a $GITHUB_OUTPUT
# The .ts scripts depend upon this
- run: tsx --version || npm install --global tsx
# Enable corepack for packageManager config
- run: sudo corepack enable
- run: yarn install

- name: build test images ${{ matrix.platform }} == ${{ env.DEFAULT_PLATFORM }}
run: |
docker info
node_modules/.bin/synthetic-chain build ${{ matrix.platform == env.DEFAULT_PLATFORM && ' ' || '--dry' }}
- name: run test images
if: ${{ matrix.platform == env.DEFAULT_PLATFORM }}
run: node_modules/.bin/synthetic-chain test

# XXX this should be instant for the local platform because all the stages
# were already built in the steps above but it's re-building the last
Expand Down

0 comments on commit f1a9c5f

Please sign in to comment.