Skip to content

Commit 57758a1

Browse files
committed
remove interop conditions
1 parent d3f321f commit 57758a1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/interop-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ concurrency:
1212
jobs:
1313
run-transport-interop:
1414
name: Run transport interoperability tests
15-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
1615
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
1716
strategy:
1817
matrix:
@@ -28,6 +27,7 @@ jobs:
2827
AWS_BUCKET_NAME: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
2928
AWS_ACCESS_KEY_ID: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
3029
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
30+
AWS_REGION: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_REGION }}
3131
FLAVOUR: ${{ matrix.flavour }}
3232

3333
- name: Run ${{ matrix.flavour }} tests
@@ -38,11 +38,10 @@ jobs:
3838
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
3939
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
4040
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
41-
aws-region: ap-southeast-2
41+
aws-region: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_REGION }}
4242
worker-count: 16
4343
run-holepunching-interop:
4444
name: Run hole-punch interoperability tests
45-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
4645
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
4746
steps:
4847
- uses: actions/checkout@v4

scripts/build-interop-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ CACHE_TO=""
66

77
# If we have credentials, write to cache
88
if [[ -n "${AWS_SECRET_ACCESS_KEY}" ]]; then
9-
CACHE_TO="--cache-to type=s3,mode=max,bucket=${AWS_BUCKET_NAME},region=ap-southeast-2,prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head"
9+
CACHE_TO="--cache-to type=s3,mode=max,bucket=${AWS_BUCKET_NAME},region=${AWS_REGION},prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head"
1010
fi
1111

1212
docker buildx build \
1313
--load \
1414
$CACHE_TO \
15-
--cache-from type=s3,mode=max,bucket=${AWS_BUCKET_NAME},region=ap-southeast-2,prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head \
15+
--cache-from type=s3,mode=max,bucket=${AWS_BUCKET_NAME},region=${AWS_REGION},prefix=buildCache,name=${FLAVOUR}-rust-libp2p-head \
1616
-t ${FLAVOUR}-rust-libp2p-head \
1717
. \
1818
-f interop-tests/Dockerfile.${FLAVOUR}

0 commit comments

Comments
 (0)