Skip to content

Commit

Permalink
Merge branch 'main' of github.com:xmtp/didethresolver into insipx/byt…
Browse files Browse the repository at this point in the history
…e-conversions
  • Loading branch information
insipx committed Feb 20, 2024
2 parents efff2f8 + fb93d06 commit dc9ce81
Show file tree
Hide file tree
Showing 20 changed files with 260 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
22 changes: 6 additions & 16 deletions .github/workflows/ghcr-image.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
name: Docker Image Build Push

on:
push:
tags:
- "*"

concurrency:
group: "docker-image"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Generate repository name
run: |
echo "REPOSITORY_PATH=$( echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]' )" >> ${GITHUB_ENV}
echo "REPOSITORY_SHA=$( echo ${GITHUB_SHA} | cut -c 1-8 )" >> ${GITHUB_ENV}
-
name: Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and Push
- name: Build and Push
uses: docker/build-push-action@v3
with:
context: .
Expand All @@ -49,8 +40,7 @@ jobs:
ghcr.io/${{ env.REPOSITORY_PATH }}:v${{ github.ref_name }}
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ env.REPOSITORY_SHA }}
ghcr.io/${{ env.REPOSITORY_PATH }}:latest
-
name: GitHub Release
- name: GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@ jobs:
env:
CARGO_INCREMENTAL: 0
run: |
cargo test --workspace --all-features --tests tests
cargo test -p lib-didethresolver --all-features --tests tests
id: test
- name: Invoke cargo doc
run: |
rm -rf ./_site
cargo doc --workspace --no-deps
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --all-features --no-deps
rm -f target/doc/.lock
cp -r target/doc _site
echo "<meta http-equiv=\"refresh\" content=\"0; url=didethresolver\">" > _site/index.html
if [ ! -d _site/lib_didethresolver ]; then
echo "Error: _site/lib_didethresolver does not exist"
exit 1
fi
echo "<meta http-equiv=\"refresh\" content=\"0; url=lib_didethresolver\">" > _site/index.html
echo "Taking care of pedantic permissions requirements required by GitHub Pages"
chmod -R +rX _site
id: docgen
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
file: prod/Dockerfile
file: prod/Dockerfile
platforms: linux/amd64
push: false
build-args: |
Expand Down
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"cargo": {
"args": [
"build",
"--bin=resolver",
"--package=resolver"
],
"filter": {
Expand All @@ -38,6 +37,9 @@
}
},
"args": [],
"env": {
"RPC_URL": "wss://eth-sepolia.g.alchemy.com/v2/",
},
"cwd": "${workspaceFolder}"
},
]
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"rust-analyzer.cargo.buildScripts.overrideCommand": null,
"rust-analyzer.cargo.features": "all"
}
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 0.1.1 (2024-02-09)

* parsing improvements

# 0.1.0 (2024-01-24)

* inital production support
* light refactor
* command line and environment variables
* url parser
* url parser
Loading

0 comments on commit dc9ce81

Please sign in to comment.