Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: bump torii to 1.7.2 #1510

chore: bump torii to 1.7.2

chore: bump torii to 1.7.2 #1510

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: oven-sh/setup-bun@v1
- name: Cache Bun modules
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install
- name: Run Prettier
run: bun run format:check --ui stream
cairo-build:
runs-on: ubuntu-latest
strategy:
matrix:
world: [dojo-starter, onchain-dash]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-dojo
with:
dojo-version: v1.5.0-alpha.2
scarb-version: 2.10.1
- name: Cache Cairo build artifacts
uses: actions/cache@v4
with:
path: |
worlds/${{ matrix.world }}/target
key: ${{ runner.os }}-cairo-${{ matrix.world }}-${{ hashFiles(format('worlds/{0}/**/*.cairo', matrix.world)) }}
restore-keys: |
${{ runner.os }}-cairo-${{ matrix.world }}-
- name: Build and test ${{ matrix.world }}
run: |
cd worlds/${{ matrix.world }}
/home/runner/.config/.dojo/bin/sozo build
/home/runner/.config/.dojo/bin/sozo test
build-packages:
runs-on: ubuntu-latest
needs: [format-check]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: oven-sh/setup-bun@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- name: Cache turbo
uses: actions/cache@v4
with:
path: |
.turbo
**/.turbo
key: ${{ runner.os }}-turbo-${{ hashFiles('**/turbo.json') }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Cache Cargo dependencies and build artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
packages/torii-wasm/dojo.c/target
key: ${{ runner.os }}-cargo-${{ hashFiles('packages/torii-wasm/**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Cache Bun modules
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Cache build outputs
uses: actions/cache@v4
with:
path: |
packages/*/dist
key: ${{ runner.os }}-build-packages-${{ hashFiles('packages/**/src/**') }}-${{ hashFiles('packages/**/package.json') }}
restore-keys: |
${{ runner.os }}-build-packages-
- name: Setup npm
run: |
npm set @ponderingdemocritus:registry=https://npm.pkg.github.com/dojoengine
npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}"
- name: Install Protobuf Compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install dependencies
run: bun install
- name: Build packages
run: bun run build:packages --ui stream
- name: Run tests
run: bun run test
build-examples:
runs-on: ubuntu-latest
needs: [format-check]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: oven-sh/setup-bun@v1
- name: Cache turbo
uses: actions/cache@v4
with:
path: |
.turbo
**/.turbo
key: ${{ runner.os }}-turbo-${{ hashFiles('**/turbo.json') }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Cache Bun modules
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Cache build outputs
uses: actions/cache@v4
with:
path: |
examples/*/dist
examples/*/.next
key: ${{ runner.os }}-build-examples-${{ hashFiles('examples/**/src/**') }}-${{ hashFiles('examples/**/package.json') }}
restore-keys: |
${{ runner.os }}-build-examples-
- name: Install dependencies
run: bun install
- name: Build examples
run: bun run build:examples --ui stream