@@ -14,32 +14,24 @@ jobs:
1414 defaults :
1515 run :
1616 working-directory : nftopia-stellar
17-
17+
1818 steps :
1919 - uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
22-
20+
2321 - name : Setup Rust
2422 uses : dtolnay/rust-toolchain@stable
2523 with :
2624 components : rustfmt, clippy
2725 targets : wasm32-unknown-unknown
28-
29- - name : Set version environment variables
30- run : |
31- echo "GIT_COMMIT_HASH=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
32- echo "BUILD_TIMESTAMP=$(date -u +%s)" >> "$GITHUB_ENV"
33- echo "RUSTC_VERSION=$(rustc --version)" >> "$GITHUB_ENV"
34-
26+
3527 - name : Verify Rust project
3628 run : |
3729 if [ ! -f "Cargo.toml" ]; then
38- echo "ERROR: No Cargo.toml file found"
30+ echo "❌ ERROR: No Cargo.toml file found"
3931 exit 1
4032 fi
41- echo "Rust project verified"
42-
33+ echo "✅ Rust project verified"
34+
4335 - name : Cache dependencies
4436 uses : actions/cache@v3
4537 with :
@@ -50,25 +42,19 @@ jobs:
5042 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5143 restore-keys : |
5244 ${{ runner.os }}-cargo-
53-
45+
5446 - name : Check formatting
5547 run : cargo fmt -- --check
56-
48+
5749 - name : Run clippy
5850 run : cargo clippy -- -D warnings
59-
51+
6052 - name : Check build
6153 run : cargo check --verbose
6254 continue-on-error : false
63-
55+
6456 - name : Run tests
6557 run : cargo test --verbose
66-
58+
6759 - name : Build WASM contracts
68- run : cargo build --target wasm32-unknown-unknown --release
69-
70- - name : Print embedded version info
71- run : |
72- echo "Git commit : $GIT_COMMIT_HASH"
73- echo "Build ts : $BUILD_TIMESTAMP"
74- echo "Rustc : $RUSTC_VERSION"
60+ run : cargo build --target wasm32-unknown-unknown --release
0 commit comments