Skip to content

[Stellar] Add rust ci compilation #594

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

Merged
merged 90 commits into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
27ebf04
Before running with prettier
CoveMB Feb 21, 2025
7c7828e
After running with prettier
CoveMB Feb 21, 2025
ce5fcd3
Add consistent-type-imports rule
CoveMB Feb 21, 2025
3cd0b59
Add lint step in ci action
CoveMB Feb 21, 2025
31f0c78
resolve prettier conflict
CoveMB Feb 21, 2025
365421b
After running with prettier
CoveMB Feb 21, 2025
cedaeaa
resolve prettier conflict
CoveMB Feb 21, 2025
98bd8af
Add lint step in ci action
CoveMB Feb 21, 2025
a9098d0
resolve prettier conflict
CoveMB Feb 21, 2025
6e9df26
resolve prettier conflict
CoveMB Feb 21, 2025
574a739
Remove .vscode directory from Git tracking
CoveMB Feb 21, 2025
c0e9002
move linter action in it's own job
CoveMB Feb 21, 2025
86c65dc
add lint note in readme
CoveMB Feb 21, 2025
a1111d3
Update .github/workflows/test.yml
CoveMB Feb 21, 2025
abbd5a4
Merge remote-tracking branch 'upstream/master'
CoveMB Feb 21, 2025
beffa34
Merge branch 'master' into master
ericglau Feb 21, 2025
d6bec2a
lint script files
CoveMB Feb 21, 2025
315b775
Merge branch 'master' of github.com:CoveMB/contracts-wizard
CoveMB Feb 21, 2025
6ed6e4f
Merge remote-tracking branch 'upstream/master'
CoveMB Feb 24, 2025
ea90cd1
Merge remote-tracking branch 'upstream/master'
CoveMB Feb 28, 2025
abf687a
Merge remote-tracking branch 'upstream/master'
CoveMB Mar 4, 2025
426b62d
Merge remote-tracking branch 'upstream/master'
CoveMB Mar 20, 2025
ea25cc1
Merge remote-tracking branch 'upstream/master'
CoveMB Mar 20, 2025
0911f87
Merge remote-tracking branch 'upstream/master'
CoveMB Mar 25, 2025
4914083
Merge remote-tracking branch 'upstream/master'
CoveMB Mar 27, 2025
5ce527f
Merge remote-tracking branch 'upstream/master'
CoveMB Apr 4, 2025
03a32fc
Merge remote-tracking branch 'upstream/master'
CoveMB Apr 7, 2025
b3c0347
Merge remote-tracking branch 'upstream/master'
CoveMB Apr 12, 2025
0a52a65
Merge remote-tracking branch 'upstream/master'
CoveMB May 13, 2025
9e74342
Merge remote-tracking branch 'upstream/master'
CoveMB May 19, 2025
d727f51
Merge remote-tracking branch 'upstream/master'
CoveMB May 21, 2025
60fb18f
Merge remote-tracking branch 'upstream/master'
CoveMB May 26, 2025
cbb7631
Merge remote-tracking branch 'upstream/master'
CoveMB May 27, 2025
0f1267f
Merge remote-tracking branch 'upstream/master'
CoveMB Jun 5, 2025
acc5e6e
Merge remote-tracking branch 'upstream/master'
CoveMB Jun 16, 2025
e3b74c8
Merge remote-tracking branch 'upstream/master'
CoveMB Jun 17, 2025
16ba867
Merge remote-tracking branch 'upstream/master'
CoveMB Jun 26, 2025
10442ac
Merge remote-tracking branch 'upstream/master'
CoveMB Jun 27, 2025
bdabd75
Use stellar scaffold upgrade for scallar scaffold setup
CoveMB Jun 27, 2025
38e5956
Make async
CoveMB Jun 27, 2025
5e3d6da
Merge remote-tracking branch 'upstream/master' into use-stellar-scaff…
CoveMB Jul 2, 2025
108e990
Update packages/core/stellar/src/zip-scaffold.ts
CoveMB Jul 4, 2025
8f216ce
Merge branch 'master' into use-stellar-scaffold-cli-upgrade
CoveMB Jul 4, 2025
c18d5a7
Merge branch 'master' into use-stellar-scaffold-cli-upgrade
ericglau Jul 4, 2025
5bb95aa
Add compilation tests scaffold zip -rust -zip - fungible
CoveMB Jul 4, 2025
7ff5865
move test utils
CoveMB Jul 4, 2025
b86a868
Add test action
CoveMB Jul 4, 2025
7194e66
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 4, 2025
1871f35
Add accesscontrol and ownable dependencies
CoveMB Jul 9, 2025
c437555
Merge branch 'use-stellar-scaffold-cli-upgrade' of github.com:CoveMB/…
CoveMB Jul 9, 2025
1b28b5a
move dependencies
CoveMB Jul 9, 2025
e4e0b58
Merge branch 'use-stellar-scaffold-cli-upgrade' of github.com:CoveMB/…
CoveMB Jul 9, 2025
9f9ec2e
move dependencies
CoveMB Jul 9, 2025
935e686
merge master
CoveMB Jul 9, 2025
3861388
Use serial tests
CoveMB Jul 9, 2025
cdaef39
Merge branch 'add-rust-ci-compilation' of github.com:CoveMB/contracts…
CoveMB Jul 9, 2025
8873a97
update stellar cli action
CoveMB Jul 9, 2025
e0108e2
Use hash
CoveMB Jul 9, 2025
33ccdb2
Workaround current scaffold dependency error
CoveMB Jul 9, 2025
1d76cc2
use version instead of hash as hash results in 404
CoveMB Jul 9, 2025
9f63580
merge upstream
CoveMB Jul 9, 2025
c041385
temporaly turn off scaffold tests
CoveMB Jul 10, 2025
ecd7866
catch warnings
CoveMB Jul 11, 2025
9576d7a
Add compilation test for stablecoin, split ci job
CoveMB Jul 14, 2025
ed05184
Comment compilation error test
CoveMB Jul 14, 2025
5710ac5
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 14, 2025
df15c6c
Comment compilation error test
CoveMB Jul 14, 2025
f6988bc
Comment compilation error test
CoveMB Jul 14, 2025
0be407e
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 15, 2025
f865711
Merge remote-tracking branch 'upstream/master' into add-rust-ci-compi…
CoveMB Jul 22, 2025
f5d1305
Merge remote-tracking branch 'upstream/master' into add-rust-ci-compi…
CoveMB Jul 24, 2025
6272336
remove flag that throw on warning
CoveMB Jul 24, 2025
a41e86c
Merge branch 'add-rust-ci-compilation' of github.com:CoveMB/contracts…
CoveMB Jul 24, 2025
6d18276
resolve compilation for access control
CoveMB Jul 24, 2025
7d0f6cb
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 25, 2025
1358356
Merge remote-tracking branch 'upstream/master' into add-rust-ci-compi…
CoveMB Jul 28, 2025
24d9f0d
remove deleted test files
CoveMB Jul 28, 2025
95d8d63
Add compilation test option snapshot
CoveMB Jul 28, 2025
9d4ef89
remove currently unused stellar sha in ci'
CoveMB Jul 28, 2025
854a121
Merge branch 'add-rust-ci-compilation' of github.com:CoveMB/contracts…
CoveMB Jul 28, 2025
d7a497c
Merge remote-tracking branch 'upstream/master' into add-rust-ci-compi…
CoveMB Jul 30, 2025
a80a57a
remove scaffold-sha from test ci caching key
CoveMB Jul 30, 2025
bdb665e
remove exclude to prevent non reported ci steps
CoveMB Jul 31, 2025
6e84ff5
graceful exit if no compile tests found
CoveMB Jul 31, 2025
9479ca7
remove unused ava import
CoveMB Jul 31, 2025
e420122
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 31, 2025
b14315b
adjust test compile file find path
CoveMB Jul 31, 2025
d412e81
Merge branch 'add-rust-ci-compilation' of github.com:CoveMB/contracts…
CoveMB Jul 31, 2025
f0ae5f0
update test snapshot after upstream merge
CoveMB Jul 31, 2025
f68211f
Merge branch 'master' into add-rust-ci-compilation
CoveMB Jul 31, 2025
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
78 changes: 41 additions & 37 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
working-directory: packages/mcp

build:
name: build (${{ matrix.package }}, ${{ matrix.variant }})
timeout-minutes: 90
strategy:
matrix:
Expand All @@ -49,6 +50,10 @@ jobs:
- cairo
- stellar
- stylus
# This variant config creates 2 branches of the matrix a default and a compile one to run the compile tests in their own job
variant:
- default
- compile

runs-on: ubuntu-latest
steps:
Expand All @@ -63,45 +68,29 @@ jobs:
uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de #v1.4.0

# ----------------------------
# Stellar setup
# Stellar compile setup

- name: Free up disk space
if: matrix.package == 'stellar'
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android
df -h

# - name: Get scaffold-stellar latest commit SHA
# if: matrix.package == 'stellar'
# id: get-scaffold-sha
# run: |
# echo "sha=$(git ls-remote https://github.com/ahalabs/scaffold-stellar HEAD | cut -f1)" >> $GITHUB_OUTPUT

# - name: Cache Scaffold CLIs
# if: matrix.package == 'stellar'
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# key: cargo-scaffold-${{ matrix.package }}-${{ steps.get-scaffold-sha.outputs.sha }}
# restore-keys: |
# cargo-scaffold-${{ matrix.package }}-
# cargo-scaffold-
# cargo-scaffold-
- name: Cache Rust dependencies
if: matrix.package == 'stellar' && matrix.variant == 'compile'
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
with:
path: |
~/.cargo/bin/
runner/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ matrix.package }}

# - name: Set up rust toolchain
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: stable, nightly
# components: clippy, rustfmt, llvm-tools-preview
# target: wasm32v1-none

# - name: Set up Stellar CLI
# if: matrix.package == 'stellar'
# uses: stellar/[email protected]
- name: Set up rust toolchain
if: matrix.package == 'stellar' && matrix.variant == 'compile'
uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 #v1.13.0
with:
toolchain: stable, nightly
components: clippy, rustfmt, llvm-tools-preview
target: wasm32v1-none

# ----------------------------
- name: Compile TypeScript
Expand All @@ -111,5 +100,20 @@ jobs:
run: yarn svelte-check
working-directory: packages/ui
- name: Run tests
run: yarn test
if: matrix.variant == 'default'
run: yarn test '**/*.test.ts' '!**/*.compile.test.ts'
working-directory: packages/core/${{matrix.package}}

- name: Run tests
if: matrix.variant == 'compile'
env:
RUSTFLAGS: ""
run: |
FILES=$(find ./ -type f -name '*.compile.test.ts')
if [ -z "$FILES" ]; then
echo "No compile tests found. Skipping."
exit 0
else
yarn test '**/*.compile.test.ts'
fi
working-directory: packages/core/${{matrix.package}}
2 changes: 1 addition & 1 deletion packages/core/solidity/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"include": [
"src/**/*"
]
}
}
Loading