Skip to content

Commit

Permalink
Use all cores for Turbo builds (#2799)
Browse files Browse the repository at this point in the history
* chore: update to Turborepo 2.0.4-canary.2

* Use all cores for Turbo builds
  • Loading branch information
steveluscher committed Jun 12, 2024
1 parent 588da27 commit 4a9b544
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:

- name: Choose Build Step
id: build-step-decider
run: echo "step-name=${{ steps.changesets.outputs.hasChangesets == 'false' && 'publish-packages' || 'build' }}" >> $GITHUB_OUTPUT
run: echo "step-name=${{ steps.changesets.outputs.hasChangesets == 'false' && 'publish-packages --concurrency=100%' || 'build' }}" >> $GITHUB_OUTPUT

- name: Run Build Step (force)
run: pnpm turbo ${{ steps.build-step-decider.outputs.step-name }} --concurrency=100% --filter=!\@solana/web3.js --force=true
run: pnpm turbo ${{ steps.build-step-decider.outputs.step-name }} --filter=!\@solana/web3.js --force=true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-prerelease-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: ./.github/workflows/actions/setup-validator

- name: Run Build Step (force)
run: pnpm turbo build --concurrency=100% --filter=\!@solana/web3.js --force=true
run: pnpm turbo build --filter=\!@solana/web3.js --force=true

- name: Configure NPM token
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: ./.github/workflows/actions/setup-validator

- name: Build & Test
run: pnpm build --concurrency=100%
run: pnpm build

- name: Stop Test Validator
if: always() && steps.start-test-validator.outcome == 'success'
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"packages/*"
],
"scripts": {
"build": "turbo run build",
"compile": "turbo run compile:js compile:typedefs",
"lint": "turbo run test:lint",
"style:fix": "turbo style:fix && pnpm prettier --log-level warn --ignore-unknown --write '{.,!packages}/*'",
"test": "turbo run test:unit:browser test:unit:node",
"test:live-with-test-validator": "turbo run test:live-with-test-validator",
"build": "turbo run --concurrency=100% build",
"compile": "turbo run --concurrency=100% compile:js compile:typedefs",
"lint": "turbo run --concurrency=100% test:lint",
"style:fix": "turbo run --concurrency=100% style:fix && pnpm prettier --log-level warn --ignore-unknown --write '{.,!packages}/*'",
"test": "turbo run --concurrency=100% test:unit:browser test:unit:node",
"test:live-with-test-validator": "turbo run --concurrency=100% test:live-with-test-validator",
"test:live-with-test-validator:setup": "./scripts/setup-test-validator.sh"
},
"devDependencies": {
Expand Down

0 comments on commit 4a9b544

Please sign in to comment.