Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build_client_native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
rust-cache-key: client_native

- run: |
cargo build -p client --release
cargo build -p web-prover-client --release

- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
name: "client.linux.amd64"
path: "target/release/client"
name: "web-prover-client.linux.amd64"
path: "target/release/web-prover-client"
retention-days: 7
if-no-files-found: "error"

- uses: actions/upload-artifact@v4
if: matrix.os == 'macos-latest'
with:
name: "client.macos.arm64"
path: "target/release/client"
name: "web-prover-client.macos.arm64"
path: "target/release/web-prover-client"
retention-days: 7
if-no-files-found: "error"
4 changes: 2 additions & 2 deletions .github/workflows/build_notary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
with:
rust-cache-key: client_notary

- run: cargo build -p notary --release
- run: cargo build -p web-prover-notary --release

- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
name: "notary.linux.amd64"
path: "target/release/notary"
path: "target/release/web-prover-notary"
retention-days: 7
if-no-files-found: "error"
56 changes: 56 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Check

on:
workflow_call:

jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check: [clippy, test, udeps]
crate: [web-prover-notary, web-prover-client, web-prover-core]
include:
- check: fmt
crate: all
steps:
- uses: actions/checkout@v4

# Setup Rust with cache key based on check type
- uses: ./.github/actions/setup-rust-ubuntu
with:
rust-cache-key: ${{ matrix.check }}

# Install necessary tools based on check type
- name: Install cargo-binstall
if: matrix.check == 'udeps'
uses: cargo-bins/cargo-binstall@main

- name: Install cargo-udeps
if: matrix.check == 'udeps'
run: cargo binstall --no-confirm cargo-udeps

- name: Install rustfmt
if: matrix.check == 'fmt'
run: rustup component add rustfmt

# Run the appropriate check
- name: Run clippy
if: matrix.check == 'clippy'
continue-on-error: true
run: cargo clippy -p ${{ matrix.crate }} -- -D warnings

- name: Run tests
if: matrix.check == 'test'
run: cargo test -p ${{ matrix.crate }}

- name: Check fmt
if: matrix.check == 'fmt'
continue-on-error: true
run: cargo fmt --all -- --check

- name: Check unused dependencies
if: matrix.check == 'udeps'
continue-on-error: true
run: cargo udeps -p ${{ matrix.crate }}
37 changes: 0 additions & 37 deletions .github/workflows/lint.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
shell: bash
run: |
mkdir -p releases/clients
cp target/release/client.linux.amd64/client releases/clients/client.linux.amd64
cp target/release/client.macos.arm64/client releases/clients/client.macos.arm64
cp target/release/web-prover-client.linux.amd64/web-prover-client releases/clients/client.linux.amd64
cp target/release/web-prover-client.macos.arm64/web-prover-client releases/clients/client.macos.arm64
cd releases/clients
tar -czf client.linux.amd64.tar.gz client.linux.amd64
rm client.linux.amd64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging-deploy-gcs/notary-config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
listen ="0.0.0.0:443"
acme_email ="eng@pluto.xyz"
acme_email="eng@pluto.xyz"
listen ="0.0.0.0:443"
2 changes: 1 addition & 1 deletion .github/workflows/staging-deploy/notary-config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
acme_email ="eng@pluto.xyz"
listen ="0.0.0.0:443"
notary_signing_key="/opt/notary/etc/fixture/certs/notary.key"
acme_email ="eng@pluto.xyz"
4 changes: 2 additions & 2 deletions .github/workflows/web-prover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ concurrency:

jobs:

lint:
uses: ./.github/workflows/lint.yaml
check:
uses: ./.github/workflows/check.yaml

build_notary:
uses: ./.github/workflows/build_notary.yaml
Expand Down
146 changes: 73 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading