Merge pull request #895 from nervosnetwork/develop #345
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: Examples | |
| on: | |
| pull_request: | |
| paths: [examples/**, scripts/**, .github/workflows/examples.yaml] | |
| push: | |
| paths: [examples/**, scripts/**, .github/workflows/examples.yaml] | |
| jobs: | |
| examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: '1.95.0' | |
| targets: riscv64imac-unknown-none-elf | |
| components: rustfmt,clippy | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install LLVM and Clang | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-19 llvm-19 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| cache-dependency-path: '**/pnpm-lock.yaml' | |
| - uses: sigoden/install-binary@v1 | |
| with: | |
| repo: nervosnetwork/ckb-standalone-debugger | |
| name: ckb-debugger | |
| cache: true | |
| - name: ckb-rust-script | |
| run: ./scripts/examples-rust-ci.sh | |
| - name: ckb-ts-script | |
| run: ./scripts/examples-ts-ci.sh | |
| - name: ckb-c-script | |
| run: ./scripts/examples-c-ci.sh | |
| - name: dApp-examples | |
| run: ./scripts/examples-dapp-ci.sh | |
| - name: dApp-fullstack | |
| run: ./scripts/examples-fullstack-ci.sh |