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

fix: pin foundry version #7

Merged
merged 2 commits into from
May 10, 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
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Lint the contracts"
run: "forge fmt"
Expand All @@ -41,6 +43,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Build the contracts and print their size"
run: "forge build --sizes"
Expand All @@ -64,6 +68,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Show the Foundry config"
run: "forge config"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ This repository contains the main smart contracts for Oval. It uses [Foundry](ht

This repo also consists of a set of scripts used to profile the Oval gas usage. See [README](./scripts/README.md) that shows how to run these and [this](https://docs.oval.xyz/contract-architecture/gas-profiling) docs page that outlines the gas profiling finding.

### Installing Foundry

Tests in this repo work up to [Nightly (2024-03-02)](https://github.com/foundry-rs/foundry/releases/tag/nightly-de33b6af53005037b463318d2628b5cfcaf39916) Foundry version, so make sure to use it when installing:

```
foundryup -v nightly-de33b6af53005037b463318d2628b5cfcaf39916
```

### Building Contracts

```
Expand Down
Loading