fix solc use forge std foundry #46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compile with typescript v4 | ||
| permissions: | ||
| contents: read | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| push: | ||
| branches: main | ||
| pull_request: | ||
| branches: | ||
| - "**" | ||
| workflow_dispatch: | ||
| jobs: | ||
| compile_with_typescript_v4: | ||
| name: Compile with typescript v4 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: 8 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: 16 | ||
| - name: Remove packages that can't be compiled with TypeScript v4 | ||
| run: rm -fr packages/hardhat-viem packages/hardhat-toolbox-viem packages/hardhat-web3-v4 | ||
| - name: Remove packages that can't be compiled with TypeScript v4 from the build script | ||
| run: sed -i -E 's/packages\/(hardhat-viem|hardhat-toolbox-viem|hardhat-web3-v4) *//g' package.json | ||
| - name: Install typescript v4 in all packages | ||
| run: | | ||
| sed -i 's/"pnpm.overrides": {.*"**\/antlr4".*"}/"pnpm.overrides": {"antlr4": "4.9.3"}/' package.json | ||
| - name: Build | ||
| run: pnpm build | ||