-
Notifications
You must be signed in to change notification settings - Fork 41
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
ref: new workspace structure and version management #280
Changes from all commits
08d7fcf
1f92ab7
42c859f
ef3b344
7a70440
469fb18
0581b0a
515e47c
0db3aa1
c854556
d8ed717
3e9057d
9622dc5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: check-publish | ||
# This workflow checks that the libraries can be published on crates.io. | ||
permissions: | ||
contents: read | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
check-publish: | ||
name: Check publish on crates.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: set up rust | ||
uses: dtolnay/rust-toolchain@master | ||
id: toolchain | ||
with: | ||
target: wasm32-unknown-unknown | ||
components: rust-src | ||
toolchain: nightly-2024-01-01 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We define the version of the toolchain in main places across workflows. I wonder if it would be better to specify it in
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: check motsu-proc | ||
run: cargo publish -p motsu-proc --dry-run | ||
|
||
- name: check motsu | ||
run: cargo publish -p motsu --dry-run | ||
|
||
- name: check openzeppelin-crypto | ||
run: cargo publish -p openzeppelin-crypto --target wasm32-unknown-unknown --dry-run | ||
|
||
# TODO: https://github.com/OpenZeppelin/rust-contracts-stylus/issues/291 | ||
# - name: check openzeppelin-stylus | ||
# run: cargo publish -p openzeppelin-stylus --target wasm32-unknown-unknown --dry-run |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ edition = "2021" | |
license = "MIT" | ||
keywords = ["arbitrum", "ethereum", "stylus"] | ||
repository = "https://github.com/OpenZeppelin/rust-contracts-stylus" | ||
version = "0.1.0-rc" | ||
|
||
[workspace.lints.rust] | ||
missing_docs = "warn" | ||
|
@@ -95,6 +96,14 @@ syn = { version = "2.0.58", features = ["full"] } | |
proc-macro2 = "1.0.79" | ||
quote = "1.0.35" | ||
|
||
# members | ||
openzeppelin-stylus = { path = "contracts" } | ||
openzeppelin-crypto = { path = "lib/crypto" } | ||
motsu = { path = "lib/motsu"} | ||
motsu-proc = { path = "lib/motsu-proc", version = "0.1.0" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we set a specific version for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed to publish |
||
e2e = { path = "lib/e2e" } | ||
e2e-proc = {path = "lib/e2e-proc"} | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
panic = "abort" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I would change the pr's name to
ref: ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@qalisander how about
ref: new workspace structure