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

Bringing back the git rev hash to Cargo.toml of each project #233

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6571084
Removed top level Cargo.toml to have individual examples not be manag…
anupsdf Apr 19, 2023
64046ba
Added Makefile for each soroban-example
anupsdf Apr 20, 2023
6e532f0
suppress printing the cd command for looking at wasm target files
anupsdf Apr 20, 2023
a2adba9
fixing Makefile
anupsdf Apr 20, 2023
e209dde
Fixing the path to wasm file now that its inside one level down
anupsdf Apr 20, 2023
9e28ef0
Fixing root Makefile for targets of fmt, watch, clean
anupsdf Apr 20, 2023
e22b54a
Using the variable instead of make
anupsdf Apr 20, 2023
e7fe7fa
Fixed github workflow rush.yml to run make fmt since we don't have to…
anupsdf Apr 20, 2023
9078f63
Fixing rust-analyzer error by explicitly specifying subdirectory proj…
anupsdf Apr 20, 2023
618c0a8
fixing typo
anupsdf Apr 20, 2023
890cae4
multiple runs in rush.yml
anupsdf Apr 20, 2023
7b3fa59
Replaced make fmt with rustfmt
anupsdf Apr 20, 2023
5298a2e
Makefile improvements
anupsdf Apr 21, 2023
7545693
Removed redundant -p package name from cargo build
anupsdf Apr 21, 2023
cacd931
Makefile fixes
anupsdf Apr 21, 2023
cc17fea
rust.yml fix to make the step name and the following run step a singl…
anupsdf Apr 21, 2023
5a1401a
using xargs to run rustfmt on a list of rust files
anupsdf Apr 21, 2023
0233cd5
fixing Makefile for all target to only have test
anupsdf Apr 21, 2023
1d4a5bd
Improvement
anupsdf Apr 21, 2023
2bbca28
fixes
anupsdf Apr 21, 2023
0ab7f33
Fixing the path to soroban_token_contract.wasm in liquiditypool example
anupsdf Apr 21, 2023
0f17c53
Trying parenthesis in rust.yml to run shell script with special chara…
anupsdf Apr 21, 2023
f6b35a4
Switching to make fmt in rust.yml instead so top level Makefile recur…
anupsdf Apr 21, 2023
6c25bcf
Bringing back the git rev hash to Cargo.toml of each project
anupsdf Apr 25, 2023
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
23 changes: 21 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rustup update
- run: cargo fmt --all --check
- run: make fmt

rust-analyzer-compat:
runs-on: ubuntu-latest
Expand All @@ -32,7 +32,26 @@ jobs:
- run: rustup update
- run: rustup +nightly component add rust-analyzer
- name: Check if rust-analyzer encounters any errors parsing project
run: rustup run nightly rust-analyzer analysis-stats . 2>&1 | (! grep ERROR)
run: rustup run nightly rust-analyzer analysis-stats token/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats deployer/deployer/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats deployer/contract/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats simple_account/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats timelock/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats alloc/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats hello_world/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats auth/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats custom_types/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats single_offer/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats liquidity_pool/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats increment/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats atomic_multiswap/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats cross_contract/contract_b/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats cross_contract/contract_a/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats errors/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats account/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats events/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats logging/ 2>&1 | (! grep ERROR)
- run: rustup run nightly rust-analyzer analysis-stats atomic_swap/ 2>&1 | (! grep ERROR)

build-and-test:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tasks:
gp open increment/src/lib.rs
gp open increment/src/test.rs
gp open README.md
soroban contract invoke --id 1 --wasm target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm --fn increment
soroban contract invoke --id 1 --wasm increment/target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm --fn increment
vscode:
extensions:
- rust-lang.rust-analyzer
Expand Down
Loading