Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: zkSync foundry #1

Merged
merged 6 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: nodejs

on:
on:
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- "**.md"
push:
branches:
- master
paths-ignore:
- '**.md'
- "**.md"

jobs:
check-dist:
Expand All @@ -19,10 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/[email protected]
with:
node-version: 16.x
node-version: 18.x

- name: Install dependencies
run: npm ci
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## `foundry-toolchain` Action
## `foundry-zksync-toolchain` Action

This GitHub Action installs [Foundry](https://github.com/foundry-rs/foundry), the blazing fast, portable and modular
This GitHub Action installs [Foundry zkSync](https://github.com/matter-labs/foundry-zksync), the blazing fast, portable and modular
toolkit for Ethereum application development.

### Example workflow
Expand All @@ -20,7 +20,7 @@ jobs:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: bgd-labs/foundry-zksync-toolchain@v1

- name: Run tests
run: forge test -vvv
Expand Down Expand Up @@ -55,7 +55,7 @@ the `cache` input to `false`, like this:

```yml
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: bgd-labs/foundry-zksync-toolchain@v1
with:
cache: false
```
Expand All @@ -72,15 +72,15 @@ applied:

```yml
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: bgd-labs/foundry-zksync-toolchain@v1
with:
cache-key: custom-seed-test-${{ github.sha }}
cache-restore-keys: |-
custom-seed-test-
custom-seed-
---
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: bgd-labs/foundry-zksync-toolchain@v1
with:
cache-key: custom-seed-coverage-${{ github.sha }}
cache-restore-keys: |-
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "foundry-toolchain"
description: "Install Foundry"
author: "Foundry"
name: "foundry-zksync-toolchain"
description: "Install zkSync Foundry"
author: "BGD Labs"
branding:
color: "gray-dark"
icon: "play-circle"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86373,7 +86373,7 @@ function getDownloadObject(version) {
const platform = os.platform();
const filename = `foundry_${normalizeVersionName(version)}_${platform}_${mapArch(os.arch())}`;
const extension = platform === "win32" ? "zip" : "tar.gz";
const url = `https://github.com/foundry-rs/foundry/releases/download/${version}/${filename}.${extension}`;
const url = `https://github.com/matter-labs/foundry-zksync/releases/download/${version}/${filename}.${extension}`;

return {
url,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/save/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@foundry-rs/foundry-toolchain",
"version": "1.0.8",
"name": "@bgd-labs/foundry-zksync-toolchain",
"version": "1.0.0",
"license": "SEE LICENSE IN LICENSE",
"main": "dist/index.js",
"keywords": [
Expand All @@ -14,7 +14,8 @@
"dapptools"
],
"scripts": {
"build": "ncc build src/index.js -o dist --source-map && ncc build src/save.js -o dist/save --source-map"
"build": "ncc build src/index.js -o dist --source-map && ncc build src/save.js -o dist/save --source-map",
"ci:publish": "npm run build && npm publish --access=public"
},
"dependencies": {
"@actions/cache": "^3.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getDownloadObject(version) {
const platform = os.platform();
const filename = `foundry_${normalizeVersionName(version)}_${platform}_${mapArch(os.arch())}`;
const extension = platform === "win32" ? "zip" : "tar.gz";
const url = `https://github.com/foundry-rs/foundry/releases/download/${version}/${filename}.${extension}`;
const url = `https://github.com/matter-labs/foundry-zksync/releases/download/${version}/${filename}.${extension}`;

return {
url,
Expand Down
Loading