mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-08 22:28:15 -05:00
fix: notary cd (#538)
This commit is contained in:
5
.github/scripts/build-server.sh
vendored
5
.github/scripts/build-server.sh
vendored
@@ -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
|
||||
|
||||
8
.github/workflows/cd-server.yml
vendored
8
.github/workflows/cd-server.yml
vendored
@@ -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: |
|
||||
|
||||
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@@ -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
|
||||
|
||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user