Skip to content

Commit

Permalink
Merge branch 'dojoengine:main' into 1466_non_state
Browse files Browse the repository at this point in the history
  • Loading branch information
fishseabowl authored Apr 19, 2024
2 parents a916fac + 9a18f4d commit 4717aac
Show file tree
Hide file tree
Showing 156 changed files with 5,238 additions and 942 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly; \
fi

ARG DOJO_VERSION=stable
RUN curl -L https://install.dojoengine.org | bash
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash
ENV PATH=${PATH}:/root/.dojo/bin
RUN dojoup
RUN dojoup -v $DOJO_VERSION

RUN chown -R root:root /usr/local/cargo
RUN chmod -R 700 /usr/local/cargo
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/rust
{
"name": "Rust",
"image": "ghcr.io/dojoengine/dojo-dev:8d66222",
"image": "ghcr.io/dojoengine/dojo-dev:3153a80",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
test:
runs-on: ubuntu-latest-16-cores
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -23,15 +23,15 @@ jobs:
cargo llvm-cov nextest --no-report -p katana
cargo llvm-cov nextest --no-report -p katana --no-default-features --features sir
cargo llvm-cov report --lcov --output-path lcov.info
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info

ensure-wasm:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
dojo-core-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -75,7 +75,7 @@ jobs:
dojo-spawn-and-move-example-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -84,7 +84,7 @@ jobs:
dojo-world-bindings-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -93,7 +93,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -102,7 +102,7 @@ jobs:
fmt:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -111,7 +111,7 @@ jobs:
docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- ".devcontainer/**"
- ".github/workflows/devcontainer.yml"
- "!.devcontainer/devcontainer.json"
release:
types: [created]

jobs:
build-and-push:
Expand Down Expand Up @@ -56,6 +58,7 @@ jobs:
tags: ghcr.io/${{ github.repository }}-dev:latest,ghcr.io/${{ github.repository }}-dev:${{ env.DOCKER_TAG }}
build-args: |
VARIANT=bookworm
DOJO_VERSION=${{ github.event_name == 'release' && github.event.release.tag_name || 'stable' }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-dev:latest

Expand Down Expand Up @@ -85,8 +88,8 @@ jobs:
with:
# We have to use a PAT in order to trigger ci
token: ${{ secrets.CREATE_PR_TOKEN }}
title: "Update devcontainer image hash: ${{ needs.build-and-push.outputs.tag_name }}"
commit-message: "Update devcontainer image hash: ${{ needs.build-and-push.outputs.tag_name }}"
title: "Update devcontainer image: ${{ needs.build-and-push.outputs.tag_name }}"
commit-message: "Update devcontainer image: ${{ needs.build-and-push.outputs.tag_name }}"
branch: bump-devcontainer
base: main
delete-branch: true
9 changes: 7 additions & 2 deletions .github/workflows/release-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ jobs:
contents: write
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:8d66222
image: ghcr.io/dojoengine/dojo-dev:3153a80
env:
VERSION: ""
steps:
# Workaround described here: https://github.com/actions/checkout/issues/760
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: cargo release version ${{ inputs.version }} --execute --no-confirm && cargo release replace --execute --no-confirm
- run: |
VERSION=${{ inputs.version }}
VERSION=${VERSION#v}
cargo release version $VERSION --execute --no-confirm && cargo release replace --execute --no-confirm
- id: version_info
run: |
cargo install cargo-get
Expand Down
Loading

0 comments on commit 4717aac

Please sign in to comment.