Skip to content

Commit

Permalink
upstream-5e72c69
Browse files Browse the repository at this point in the history
  • Loading branch information
MBerguer committed Jan 6, 2025
2 parents cb40c35 + 5e72c69 commit bdf9df8
Show file tree
Hide file tree
Showing 110 changed files with 2,263 additions and 1,433 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
crates/cheatcodes/assets/*.json linguist-generated
testdata/cheats/Vm.sol linguist-generated

# See <https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header>
*.rs diff=rust
64 changes: 57 additions & 7 deletions .github/changelog.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,66 @@
{
"categories": [
{
"title": "## Features",
"labels": ["T-feature"]
"title": "## Breaking changes",
"labels": ["T-likely-breaking "]
},
{
"title": "## Fixes",
"labels": ["T-bug", "T-fix"]
"title": "## Anvil Features",
"labels": ["C-anvil", "T-feature"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Anvil Fixes",
"labels": ["C-anvil", "T-bug"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Cast Features",
"labels": ["C-cast", "T-feature"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Cast Fixes",
"labels": ["C-cast", "T-bug"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Chisel Features",
"labels": ["C-chisel", "T-feature"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Chisel Fixes",
"labels": ["C-chisel", "T-bug"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Forge Features",
"labels": ["C-forge", "T-feature"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Forge Fixes",
"labels": ["C-forge", "T-bug"],
"exhaustive": true,
"exhaustive_rules": false
},
{
"title": "## Performance improvements",
"labels": ["T-perf"]
}
],
"ignore_labels": ["L-ignore"],
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}",
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
"empty_template": "- No changes"
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}\n## Full Changelog:\n ${{RELEASE_DIFF}}",
"pr_template": "- ${{TITLE}} (#${{NUMBER}}) by @${{AUTHOR}}",
"empty_template": "- No changes",
"max_pull_requests": 100,
"max_back_track_time_days": 60
}
22 changes: 18 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: release
on:
push:
tags:
- "v*.*.*"
- "*-zksync.*"
schedule:
- cron: "0 0 * * *"
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
if [[ ${IS_NIGHTLY} == 'true' ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=foundry-zksync Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
else
Expand All @@ -42,7 +43,7 @@ jobs:
# which allows users to roll back. It is also used to build
# the changelog.
- name: Create build-specific nightly tag
if: ${{ env.IS_NIGHTLY }}
if: ${{ env.IS_NIGHTLY == 'true' }}
uses: actions/github-script@v7
env:
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
Expand All @@ -56,12 +57,16 @@ jobs:
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: "./.github/changelog.json"
fromTag: ${{ env.IS_NIGHTLY && 'nightly' || '' }}
fromTag: ${{ env.IS_NIGHTLY == 'true' && 'nightly' || '' }}
toTag: ${{ steps.release_info.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
permissions:
id-token: write
contents: write
attestations: write
name: ${{ matrix.target }} (${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 240
Expand Down Expand Up @@ -205,6 +210,15 @@ jobs:
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.foundry_man }}
- name: Binaries attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
${{ env.anvil_bin_path }}
${{ env.cast_bin_path }}
${{ env.chisel_bin_path }}
${{ env.forge_bin_path }}
# If this is a nightly release, it also updates the release
# tagged `nightly` for compatibility with `foundryup`
- name: Update nightly release
Expand Down Expand Up @@ -240,7 +254,7 @@ jobs:

# Moves the `nightly` tag to `HEAD`
- name: Move nightly tag
if: ${{ env.IS_NIGHTLY }}
if: ${{ env.IS_NIGHTLY == 'true' }}
uses: actions/github-script@v7
with:
script: |
Expand Down
Loading

0 comments on commit bdf9df8

Please sign in to comment.