Skip to content

fix: specifies issuer to limit materialization calculations #96

fix: specifies issuer to limit materialization calculations

fix: specifies issuer to limit materialization calculations #96

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
# default: "v0-rust"
prefix-key: v0
# Cache only the cargo registry
cache-targets: false
- uses: mozilla-actions/[email protected]
- name: Check fmt
run: make check-fmt
- name: Check clippy
run: make check-clippy
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
# default: "v0-rust"
prefix-key: v0
# Cache only the cargo registry
cache-targets: false
- uses: mozilla-actions/[email protected]
- name: Run tests
run: |
echo "Skipping tests since github won't let us use tmp directories"
env:
DID_DOCUMENT: ${{ vars.DID_DOCUMENT }}
DID_PRIVATE_KEY: ${{ secrets.DID_PRIVATE_KEY }}
RUST_LOG: info
DATABASE_URL: ${{ vars.DATABASE_URL }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
# default: "v0-rust"
prefix-key: v0
# Cache only the cargo registry
cache-targets: false
- uses: mozilla-actions/[email protected]
- name: Build
run: make build
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Image
run: |
make build-docker
env:
DID_DOCUMENT: ${{ vars.DID_DOCUMENT }}
DID_PRIVATE_KEY: ${{ secrets.DID_PRIVATE_KEY }}
RUST_LOG: info
CERAMIC_URL: ${{ vars.CERAMIC_URL }}