Skip to content

Commit

Permalink
fix: Windows+npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Sep 17, 2024
1 parent 86a877d commit c5c355a
Showing 1 changed file with 34 additions and 25 deletions.
59 changes: 34 additions & 25 deletions .github/workflows/tact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,44 +197,53 @@ jobs:
yarn build
- name: (npm) Test compatibility with Blueprint
if: ${{ matrix.package-manager == 'npm' }}
run: |
npm link &&
cd .. &&
npm create -y ton@latest -- test-project --type tact-counter --contractName Counter &&
cd test-project &&
npm link @tact-lang/compiler &&
npm run build &&
if: ${{ matrix.package-manager == 'npm' && matrix.os != 'windows-latest' }}
run: |
npm link
npm create -y ton@latest -- test-project --type tact-counter --contractName Counter
cd test-project
npm link @tact-lang/compiler
npm run build
npm run test
- name: (npm) Test compatibility with Blueprint
if: ${{ matrix.package-manager == 'npm' && matrix.os == 'windows-latest' }}
run: |
npm link
npm --% create -y ton@latest -- test-project --type tact-counter --contractName Counter
cd test-project
npm link @tact-lang/compiler
npm run build
npm run test
- name: (yarn) Test compatibility with Blueprint
if: ${{ matrix.package-manager == 'yarn' }}
run: |
yarn link &&
yarn create ton test-project --type tact-counter --contractName Counter &&
cd test-project &&
yarn link @tact-lang/compiler &&
yarn build &&
yarn link
yarn create ton test-project --type tact-counter --contractName Counter
cd test-project
yarn link @tact-lang/compiler
yarn build
yarn test
- name: (pnpm) Test compatibility with Blueprint
if: ${{ matrix.package-manager == 'pnpm' }}
run: |
npm i -g pnpm &&
pnpm link -g &&
cd .. &&
pnpm create ton@latest test-project --type tact-counter --contractName Counter &&
cd test-project &&
pnpm link -g @tact-lang/compiler &&
pnpm build &&
npm i -g pnpm
pnpm link -g
cd ..
pnpm create ton@latest test-project --type tact-counter --contractName Counter
cd test-project
pnpm link -g @tact-lang/compiler
pnpm build
pnpm test
- name: (bun) Test compatibility with Blueprint
if: ${{ matrix.package-manager == 'bun' }}
run: |
bun link &&
bun create ton@latest test-project --type tact-counter --contractName Counter &&
cd test-project &&
bun link @tact-lang/compiler &&
bun run build && # without 'run' Bun will use its own bundler
bun link
bun create ton@latest test-project --type tact-counter --contractName Counter
cd test-project
bun link @tact-lang/compiler
bun run build # without 'run' Bun will use its own bundler
bun run test # without 'run' Bun will use its own test runner

0 comments on commit c5c355a

Please sign in to comment.