Skip to content

Commit

Permalink
refactor: adjust paths
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Feb 2, 2024
1 parent 8ba37d2 commit 0e8d1ac
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 28 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/check-code-format.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: Check code format

on:
push:
paths:
- '.github/workflows/check-code-format.yml'
- 'onchain/rollups/**'
on: [push]

jobs:
check-code-format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: onchain/rollups

steps:
- uses: actions/checkout@v4

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
outputs:
published: ${{ steps.changeset.outputs.published }}
version: ${{ steps.get_version.outputs.version }}
defaults:
run:
working-directory: onchain/rollups

steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +41,6 @@ jobs:
setupGitUser: false
commit: "chore: version packages"
publish: yarn changeset publish
cwd: onchain/rollups
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -58,10 +54,6 @@ jobs:
needs: version_or_publish
if: ${{ needs.version_or_publish.outputs.published == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: onchain/rollups

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -88,13 +80,13 @@ jobs:
VERSION: ${{ needs.version_or_publish.outputs.version }}

- name: Edit Rust package manifest
working-directory: onchain/rollups/out/bindings
working-directory: out/bindings
run: |
tomlq -ti '.package.license = "Apache-2.0"' Cargo.toml
tomlq -ti '.package.description = "Rust bindings for Cartesi Rollups smart contracts"' Cargo.toml
- name: Publish Rust package to crates.io
working-directory: onchain/rollups/out/bindings
working-directory: out/bindings
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: onchain/rollups

steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "onchain/rollups/lib/forge-std"]
[submodule "forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CODEOWNERS @guidanoli
/.github/workflows/ @guidanoli
/onchain/rollups/package.json @pedroargento
/package.json @pedroargento
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ git submodule update --init --recursive
```

This repository uses [Yarn](https://yarnpkg.com/getting-started/install) to manage JavaScript dependencies.
In order to install them, please, run the following commands.
In order to install them, please, run the following command.

```sh
cd onchain/rollups
yarn install
```

Expand All @@ -46,7 +45,7 @@ If the node is not listening to `http://localhost:8545/`, please set the `RPC_UR
## 🧪 Tests

If you plan to run the [Forge](https://book.getfoundry.sh/getting-started/installation) tests, there still some setup left to do.
Assuming you are on the `onchain/rollups` directory, and that [Docker Engine](https://docs.docker.com/get-docker/) is running on the background, you may run the following command.
Assuming that [Docker Engine](https://docs.docker.com/get-docker/) is running on the background, you may run the following command.
This command will build the Cartesi Machine image necessary to build the proofs.

```sh
Expand Down

0 comments on commit 0e8d1ac

Please sign in to comment.