Skip to content

Commit

Permalink
ci: add workflow for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed May 6, 2022
1 parent bbb9eaa commit 97dabec
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Bindings

env:
CI: true
FORCE_COLOR: true

on:
push:
branches: [main]
paths:
- ".github/workflows/bindings.yml"
- "LUSDChickenBonds/**"

pull_request:
paths:
- ".github/workflows/bindings.yml"
- "LUSDChickenBonds/**"

jobs:
dev-test:
name: Code generation
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
# TODO pin this down once Foundry starts versioning releases
version: nightly

- name: Compile contracts
working-directory: LUSDChickenBonds
run: forge build

- name: Setup Node.js & Yarn
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies & generate typings
working-directory: LUSDChickenBonds/bindings
run: yarn install --frozen-lockfile

- name: Compile with TypeScript
working-directory: LUSDChickenBonds/bindings
run: yarn build
4 changes: 2 additions & 2 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive

Expand All @@ -47,7 +47,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive

Expand Down

0 comments on commit 97dabec

Please sign in to comment.