Skip to content

Commit

Permalink
chore: foundry update 4af6cfa (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Alisina Bahadori <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: sealer3 <[email protected]>
Co-authored-by: evalir <[email protected]>
Co-authored-by: Yash Atreya <[email protected]>
Co-authored-by: Arsenii Kulikov <[email protected]>
Co-authored-by: jxom <[email protected]>
Co-authored-by: grandizzy <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Meet Mangukiya <[email protected]>
Co-authored-by: mattsse <[email protected]>
Co-authored-by: galois <[email protected]>
Co-authored-by: Rafael Quintero <[email protected]>
Co-authored-by: bixia <[email protected]>
Co-authored-by: Azleal <[email protected]>
Co-authored-by: aureliusbtc <[email protected]>
Co-authored-by: Federico Gimenez <[email protected]>
Co-authored-by: NIC Lin <[email protected]>
Co-authored-by: Colin Kennedy <[email protected]>
Co-authored-by: Colin Kennedy <[email protected]>
Co-authored-by: sodamntired <[email protected]>
Co-authored-by: Andre Miras <[email protected]>
Co-authored-by: sam bacha <[email protected]>
Co-authored-by: teddav <[email protected]>
Co-authored-by: grandizzy <[email protected]>
Co-authored-by: Dhairya Sethi <[email protected]>
Co-authored-by: m4rio <[email protected]>
Co-authored-by: Oliver Nordbjerg <[email protected]>
Co-authored-by: Oliver Nordbjerg <[email protected]>
Co-authored-by: morito <[email protected]>
Co-authored-by: tesseract <[email protected]>
Co-authored-by: mattsse <[email protected]>
Co-authored-by: poma <[email protected]>
Co-authored-by: poma <[email protected]>
Co-authored-by: Swanny <[email protected]>
Co-authored-by: Zhuo Zhang <[email protected]>
Co-authored-by: Ayene <[email protected]>
Co-authored-by: Samuel Laferriere <[email protected]>
Co-authored-by: Paul Peregud <[email protected]>
Co-authored-by: Pawel Peregud <[email protected]>
Co-authored-by: funnybird <[email protected]>
Co-authored-by: fenghaojiang <[email protected]>
Co-authored-by: Karrq <[email protected]>
Co-authored-by: Federico Rodríguez <[email protected]>
Co-authored-by: Juan Rigada <[email protected]>
Co-authored-by: Francesco Dainese <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 736 changed files with 40,105 additions and 25,740 deletions.
10 changes: 7 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
* @danipopes @evalir @mattsse

crates/anvil/ @evalir @mattsse
crates/evm/coverage/ @evalir @onbjerg
crates/anvil/ @danipopes @mattsse @evalir
crates/cheatcodes/ @danipopes @mattsse @klkvr @evalir
crates/evm/coverage/ @onbjerg
crates/fmt/ @rkrasiuk
crates/macros/impls/ @danipopes
crates/linking/ @klkvr
crates/macros/ @danipopes
crates/script/ @danipopes @mattsse @klkvr
crates/wallets/ @klkvr
2 changes: 1 addition & 1 deletion .github/scripts/matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
t_linux_x86 = Target("ubuntu-latest", "x86_64-unknown-linux-gnu", "linux-amd64")
# TODO: Figure out how to make this work
# t_linux_arm = Target("ubuntu-latest", "aarch64-unknown-linux-gnu", "linux-aarch64")
t_macos = Target("macos-latest", "x86_64-apple-darwin", "macosx-amd64")
t_macos = Target("macos-latest", "aarch64-apple-darwin", "macosx-aarch64")
t_windows = Target("windows-latest", "x86_64-pc-windows-msvc", "windows-amd64")
targets = [t_linux_x86, t_windows] if is_pr else [t_linux_x86, t_macos, t_windows]

Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: deny

on:
push:
branches: [main]
paths: [Cargo.lock, deny.toml]
pull_request:
branches: [main]
paths: [Cargo.lock, deny.toml]
push:
branches: [dev]
paths: [Cargo.lock, deny.toml]
pull_request:
branches: [dev]
paths: [Cargo.lock, deny.toml]

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
cargo-deny:
name: cargo deny check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check all
# Clear out arguments to not pass `--all-features` to `cargo deny`.
# many crates have an `openssl` feature which enables banned dependencies
arguments: ""
cargo-deny:
name: cargo deny check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check all
# Clear out arguments to not pass `--all-features` to `cargo deny`.
# many crates have an `openssl` feature which enables banned dependencies
arguments: ""
80 changes: 39 additions & 41 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# Automatically run `cargo update` periodically
# Runs `cargo update` periodically.

name: dependencies

on:
schedule:
# Run weekly
- cron: "0 0 * * SUN"
workflow_dispatch:
# Needed so we can run it manually
schedule:
# Run weekly
- cron: "0 0 * * SUN"
workflow_dispatch:
# Needed so we can run it manually

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: cargo-update
TITLE: "chore(deps): weekly `cargo update`"
BODY: |
Automation to keep dependencies in `Cargo.lock` current.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: cargo-update
TITLE: "chore(deps): weekly `cargo update`"
BODY: |
Automation to keep dependencies in `Cargo.lock` current.
<details><summary><strong>cargo update log</strong></summary>
<p>
<details><summary><strong>cargo update log</strong></summary>
<p>
```log
$cargo_update_log
```
```log
$cargo_update_log
```
</p>
</details>
</p>
</details>
jobs:
update:
Expand All @@ -37,30 +37,28 @@ jobs:
with:
toolchain: nightly-2023-09-30

- name: cargo update
# Remove first line that always just says "Updating crates.io index"
run:
cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a
cargo_update.log
- name: cargo update
# Remove first line that always just says "Updating crates.io index"
run: cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log

- name: craft commit message and PR body
id: msg
run: |
export cargo_update_log="$(cat cargo_update.log)"
- name: craft commit message and PR body
id: msg
run: |
export cargo_update_log="$(cat cargo_update.log)"
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
title: ${{ env.TITLE }}
body: ${{ steps.msg.outputs.body }}
branch: ${{ env.BRANCH }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: ./Cargo.lock
commit-message: ${{ steps.msg.outputs.commit_message }}
title: ${{ env.TITLE }}
body: ${{ steps.msg.outputs.body }}
branch: ${{ env.BRANCH }}
2 changes: 1 addition & 1 deletion .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2024-02-06
toolchain: nightly-2024-04-28

- name: Build forge binary
run: cargo build --release --bin forge
Expand Down
158 changes: 79 additions & 79 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: release

on:
push:
tags:
- "v*.*.*"
schedule:
- cron: "0 0 * * *" # Daily at midnight
workflow_dispatch:
push:
tags:
- "v*.*.*"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
IS_NIGHTLY: ${{ github.event_name == 'workflow_dispatch' }}
CARGO_TERM_COLOR: always
IS_NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

jobs:
prepare:
name: Prepare release
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
tag_name: ${{ steps.release_info.outputs.tag_name }}
release_name: ${{ steps.release_info.outputs.release_name }}
changelog: ${{ steps.build_changelog.outputs.changelog }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
else
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync@${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi
# Creates a `nightly-SHA` tag for this specific nightly
# This tag is used for this specific nightly version's release
# which allows users to roll back. It is also used to build
# the changelog.
- name: Create build-specific nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
env:
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
with:
script: |
const createTag = require('./.github/scripts/create-tag.js')
await createTag({ github, context }, process.env.TAG_NAME)
- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "./.github/changelog.json"
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
toTag: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
prepare:
name: Prepare release
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
tag_name: ${{ steps.release_info.outputs.tag_name }}
release_name: ${{ steps.release_info.outputs.release_name }}
changelog: ${{ steps.build_changelog.outputs.changelog }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
else
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync@${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi
# Creates a `nightly-SHA` tag for this specific nightly
# This tag is used for this specific nightly version's release
# which allows users to roll back. It is also used to build
# the changelog.
- name: Create build-specific nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
env:
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
with:
script: |
const createTag = require('./.github/scripts/create-tag.js')
await createTag({ github, context }, process.env.TAG_NAME)
- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "./.github/changelog.json"
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
toTag: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: ${{ matrix.target }} (${{ matrix.runner }})
Expand Down Expand Up @@ -220,27 +220,27 @@ jobs:
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.foundry_man }}
cleanup:
name: Release cleanup
runs-on: ubuntu-latest
timeout-minutes: 30
needs: release
if: always()
steps:
- uses: actions/checkout@v4

# Moves the `nightly` tag to `HEAD`
- name: Move nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
with:
script: |
const moveTag = require('./.github/scripts/move-tag.js')
await moveTag({ github, context }, 'nightly')
- name: Delete old nightlies
uses: actions/github-script@v7
with:
script: |
const prunePrereleases = require('./.github/scripts/prune-prereleases.js')
await prunePrereleases({github, context})
cleanup:
name: Release cleanup
runs-on: ubuntu-latest
timeout-minutes: 30
needs: release
if: always()
steps:
- uses: actions/checkout@v4

# Moves the `nightly` tag to `HEAD`
- name: Move nightly tag
if: ${{ env.IS_NIGHTLY }}
uses: actions/github-script@v7
with:
script: |
const moveTag = require('./.github/scripts/move-tag.js')
await moveTag({ github, context }, 'nightly')
- name: Delete old nightlies
uses: actions/github-script@v7
with:
script: |
const prunePrereleases = require('./.github/scripts/prune-prereleases.js')
await prunePrereleases({github, context})
4 changes: 2 additions & 2 deletions .github/workflows/secret_scanner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
Expand All @@ -14,4 +14,4 @@ jobs:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
extra_args: --debug --only-verified --exclude-globs=zk-tests/src/Cheatcodes.t.sol # TODO: Remove this file once merged
Loading

0 comments on commit aeb30b1

Please sign in to comment.