Skip to content
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
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ artifacts
cache
constants
coverage
lib/murky
lib/openzeppelin-contracts
lib
order-validator/test
49 changes: 49 additions & 0 deletions .github/actions/forge-precompile/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Restore or build precompiled Forge artifacts
description: >-
Restore the reference (via_ir = false) and optimized (via_ir = true) builds
from the cache, and compile whichever is missing. A cache outage costs a
rebuild instead of failing the job.

inputs:
cache-key:
description: The key computed by the forge-build job.
required: true
save:
description: Whether to save the build to the cache after compiling it.
required: false
default: "false"

runs:
using: composite
steps:
- name: Restore precompiled artifacts
id: restore
uses: actions/cache/restore@v6
with:
path: |
reference-out
reference-cache
optimized-out
optimized-cache
key: ${{ inputs.cache-key }}

- name: Precompile reference using 0.8.24 and via-ir=false
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
run: FOUNDRY_PROFILE=reference forge build

- name: Precompile optimized using 0.8.24 and via-ir=true
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
run: FOUNDRY_PROFILE=optimized forge build

- name: Save precompiled artifacts
if: inputs.save == 'true' && steps.restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
with:
path: |
reference-out
reference-cache
optimized-out
optimized-cache
key: ${{ inputs.cache-key }}
37 changes: 37 additions & 0 deletions .github/actions/setup-foundry/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Set up Foundry
description: >-
Install a pinned Foundry version, reusing a cached copy so a GitHub releases
outage doesn't fail the job.

inputs:
version:
description: The Foundry version to install, such as v1.9.0.
required: true

runs:
using: composite
steps:
- name: Restore Foundry
id: cache
uses: actions/cache@v6
with:
# foundryup installs the binaries under versions/ and links them
# from bin/, so both are cached.
path: |
~/.foundry/bin
~/.foundry/versions
key: foundry-install-${{ runner.os }}-${{ inputs.version }}

- name: Install Foundry
if: steps.cache.outputs.cache-hit != 'true'
uses: foundry-rs/foundry-toolchain@dba66c27052e63476d886f22216e119ba7e615bf # v1.9.2
with:
version: ${{ inputs.version }}

- name: Add Foundry to PATH
shell: bash
run: echo "$HOME/.foundry/bin" >>"$GITHUB_PATH"

- name: Print Foundry version
shell: bash
run: forge --version
22 changes: 0 additions & 22 deletions .github/workflows/docs.yml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
actions: write # actions/stale keeps its state in the Actions cache
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/stale@v8
- uses: actions/stale@v11
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment."
Expand Down
Loading
Loading