Skip to content

Commit

Permalink
Merge branch 'dojoengine:main' into 8-index-by-name
Browse files Browse the repository at this point in the history
  • Loading branch information
neotheprogramist authored Oct 3, 2023
2 parents a53f71b + 9486a42 commit c499667
Show file tree
Hide file tree
Showing 62 changed files with 5,202 additions and 961 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/cargo-udeps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Unused dependencies

on:
schedule:
# Triggers the workflow every Sunday
- cron: "0 18 * * 0"

env:
CARGO_TERM_COLOR: always

jobs:
cargo-udeps:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@master
with:
# cargo-udeps require nightly to run
toolchain: nightly

- name: Install cargo-udeps
run: cargo install --locked cargo-udeps

- name: Check for unused dependencies
run: cargo udeps --workspace --all-targets --all-features

- name: Create github issue for failed action
uses: imjohnbo/issue-bot@v3
if: ${{ failure() }}
with:
labels: "bug"
title: "ci: Github Action for `cargo-udeps` failed"
body: |
`cargo-udeps` failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Reference: ${{ github.ref_type }} ${{ github.ref }} (commit ${{ github.sha }}).
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 1 addition & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
cargo test
cargo test --all-features
ensure-wasm:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -116,36 +116,6 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: scripts/rust_fmt.sh --check

# Check for unnecessary dependencies.
# udeps:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: ${{ env.RUST_VERSION }}

# - uses: Swatinem/rust-cache@v2
# - uses: arduino/setup-protoc@v1
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# - id: cache-cargo-udeps
# uses: actions/cache@v2
# with:
# path: ~/.cargo-udeps-cache
# key: cargo-udeps-v0.1.40-${{ runner.os }}
# - name: "Download and run cargo-udeps"
# run: |
# if [ ! -f ~/.cargo-udeps-cache/cargo-udeps ]; then
# wget -O - -c https://github.com/est31/cargo-udeps/releases/download/v0.1.40/cargo-udeps-v0.1.40-x86_64-unknown-linux-gnu.tar.gz | tar -xz
# mkdir -p ~/.cargo-udeps-cache
# mv cargo-udeps-*/cargo-udeps ~/.cargo-udeps-cache/cargo-udeps
# fi
# ~/.cargo-udeps-cache/cargo-udeps udeps --all-targets
# env:
# RUSTUP_TOOLCHAIN: ${{ env.RUST_VERSION }}

docs:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "crates/katana/core/contracts/messaging/solidity/lib/forge-std"]
path = crates/katana/core/contracts/messaging/solidity/lib/forge-std
url = https://github.com/foundry-rs/forge-std
Loading

0 comments on commit c499667

Please sign in to comment.