fix: notary cd (#538)

This commit is contained in:
sinu.eth
2024-07-24 18:51:34 +09:00
committed by GitHub
parent e14d0cf563
commit 040608bb6e
5 changed files with 12 additions and 15 deletions

View File

@@ -6,8 +6,7 @@ environment=$1
aws s3 sync .git s3://tlsn-deploy/$environment/.git --delete
cd notary/server
cargo build --release
aws s3 cp ../target/release/notary-server s3://tlsn-deploy/$environment/
cargo build -p notary-server --release
aws s3 cp ./target/release/notary-server s3://tlsn-deploy/$environment/
exit 0

View File

@@ -50,7 +50,7 @@ jobs:
with:
ref: ${{ github.ref }}
# Have to specify '(notary)', as we are using matrix for build_and_test job in ci.yml, else it will fail, more details [here](https://github.com/lewagon/wait-on-check-action#check-name)
check-name: 'Build and test (notary)'
check-name: 'Build and test'
repo-token: ${{ secrets.GITHUB_TOKEN }}
# How frequent (in seconds) this job will call GitHub API to check the status of the job specified at 'check-name'
wait-interval: 60
@@ -71,12 +71,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Use caching
uses: Swatinem/rust-cache@v2.5.0
with:
workspaces: ${{ matrix.package }} -> target
- name: Cargo build
run: |

View File

@@ -49,4 +49,4 @@ jobs:
push: true
tags: ${{ steps.meta-notary-server.outputs.tags }}
labels: ${{ steps.meta-notary-server.outputs.labels }}
file: ./notary/server/notary-server.Dockerfile
file: ./crates/notary/server/notary-server.Dockerfile

View File

@@ -47,12 +47,12 @@ jobs:
toolchain: stable
components: clippy
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Use caching
uses: Swatinem/rust-cache@v2.7.3
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Build
run: cargo build --all-targets
@@ -95,4 +95,4 @@ jobs:
run: echo "127.0.0.1 tlsnotaryserver.io" | sudo tee -a /etc/hosts
- name: Run integration tests
run: cargo test --release --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core -- --include-ignored
run: cargo test --profile tests-integration --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core -- --include-ignored

View File

@@ -27,6 +27,10 @@ members = [
]
resolver = "2"
[profile.tests-integration]
inherits = "release"
opt-level = 1
[workspace.dependencies]
notary-client = { path = "crates/notary/client" }
notary-server = { path = "crates/notary/server" }