Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 8030963

Browse files
committed
30: remove anvil from pages build
- move abi to root of lib - disable incremental build for ci
1 parent d4bd7a3 commit 8030963

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

.github/workflows/ci-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ jobs:
3131
push: false
3232
build-args: |
3333
VERSION=latest
34+
CARGO_INCREMENTAL=0

.github/workflows/github-pages.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: GitHub Pages
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["Build Dev Image CI"]
56
branches: ["main"]
7+
types:
8+
- completed
69
# Allows you to run this workflow manually from the Actions tab
710
workflow_dispatch:
8-
11+
912
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1013
permissions:
1114
contents: read
@@ -37,12 +40,11 @@ jobs:
3740
profile: minimal
3841
override: true
3942

40-
- name: Install Foundry
41-
uses: foundry-rs/foundry-toolchain@v1
42-
4343
- name: Run tests
44+
env:
45+
CARGO_INCREMENTAL: 0
4446
run: |
45-
cargo test
47+
cargo test --workspace --all-features --tests tests
4648
id: test
4749

4850
- name: Invoke cargo doc

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
{
5858
"label": "test",
5959
"type": "shell",
60-
"command": "cargo test",
60+
"command": "cargo test --workspace --all-features --no-fail-fast",
6161
"options": {
6262
"cwd": "${workspaceFolder}"
6363
},

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM ghcr.io/xmtp/rust:latest
2-
2+
ARG CARGO_INCREMENTAL
33
ARG PROJECT=didethresolver
44
WORKDIR /workspaces/${PROJECT}
55

@@ -14,6 +14,7 @@ COPY --from=ghcr.io/xmtp/foundry:latest /usr/local/bin/anvil /usr/local/bin/anvi
1414

1515
COPY --chown=xmtp:xmtp . .
1616

17+
ENV CARGO_INCREMENTAL=${CARGO_INCREMENTAL:-1}
1718
RUN cargo fmt --check --all
1819
RUN cargo clippy --all-features --no-deps -- -D warnings
1920
RUN cargo test --workspace --all-features
File renamed without changes.

lib/src/resolver/did_registry.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use self::did_registry::*;
66

77
abigen!(
88
DIDRegistry,
9-
"./src/abi/DIDRegistry.json",
9+
"./abi/DIDRegistry.json",
1010
derives(serde::Serialize, serde::Deserialize)
1111
);
1212

0 commit comments

Comments
 (0)