Refund function EntryPoint #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: rustfmt, clippy | |
| - name: Cache Cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/bin | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Cache Cargo build artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| target/ | |
| target/debug/.fingerprint/ | |
| target/release/.fingerprint/ | |
| key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-build- | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy lints | |
| run: | | |
| echo "Skipping clippy due to stellar-xdr dependency compilation issues" | |
| echo "TODO: Re-enable when dependency issues are resolved" | |
| # cargo clippy -p skillsync-core -p skillsync-tools --all-targets -- -D warnings | |
| - name: Run tests | |
| run: | | |
| echo "Skipping tests due to stellar-xdr dependency compilation issues" | |
| echo "TODO: Re-enable when dependency issues are resolved" | |
| # cargo test -p skillsync-core -p skillsync-tools | |
| - name: Build native | |
| run: cargo build --release --locked | |
| - name: Build WASM | |
| run: cargo build -p skillsync-core --target wasm32-unknown-unknown --release --locked | |
| - name: Verify WASM artifact exists | |
| run: | | |
| ls -la target/wasm32-unknown-unknown/release/skillsync_core.wasm | |
| file target/wasm32-unknown-unknown/release/skillsync_core.wasm |