Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushtom committed Feb 28, 2025
1 parent a743631 commit 89c67cf
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
with:
name: dojo-bins
path: /tmp/bins
- uses: actions/download-artifact@v4
with:
name: explorer-dist
path: crates/katana/explorer/ui/dist
- name: Verify explorer UI assets
run: |
ls -la crates/katana/explorer/ui/dist || echo "Explorer UI dist directory not found"
- run: |
export PATH=/tmp/bins:$PATH
chmod +x /tmp/bins/katana
Expand All @@ -91,26 +98,43 @@ jobs:

ensure-wasm:
runs-on: ubuntu-latest
needs: [fmt, cairofmt]
needs: [fmt, cairofmt, build-explorer]
container:
image: ghcr.io/dojoengine/dojo-dev:v1.2.1
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: actions/download-artifact@v4
with:
name: explorer-dist
path: crates/katana/explorer/ui/dist
- name: Verify explorer UI assets
run: |
ls -la crates/katana/explorer/ui/dist || echo "Explorer UI dist directory not found"
- name: Install wasm32 target
run: rustup target add wasm32-unknown-unknown
- run: cargo build -r --target wasm32-unknown-unknown -p torii-client

ensure-windows:
needs: ensure-docker
needs: [ensure-docker, build-explorer]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_version }}
target: x86_64-pc-windows-msvc
- uses: swatinem/rust-cache@v2
- uses: actions/download-artifact@v4
with:
name: explorer-dist
path: crates/katana/explorer/ui/dist
- name: Verify explorer UI assets
run: |
dir crates\katana\explorer\ui\dist || echo "Explorer UI dist directory not found"
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.github_token }}
Expand Down Expand Up @@ -195,7 +219,7 @@ jobs:
clippy:
runs-on: ubuntu-latest-4-cores
needs: [fmt, cairofmt]
needs: [fmt, cairofmt, build-explorer]
container:
image: ghcr.io/dojoengine/dojo-dev:v1.2.1
steps:
Expand All @@ -214,7 +238,7 @@ jobs:

docs:
runs-on: ubuntu-latest
needs: [fmt, cairofmt]
needs: [fmt, cairofmt, build-explorer]
container:
image: ghcr.io/dojoengine/dojo-dev:v1.2.1
steps:
Expand Down

0 comments on commit 89c67cf

Please sign in to comment.