Skip to content

Commit 56ca228

Browse files
authored
Revert "Gh v2 580b czarte and Dan (#630)"
This reverts commit 949dd70.
1 parent 949dd70 commit 56ca228

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+66166
-2885
lines changed

.githooks/pre-commit

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/ci-matrix.yml

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: Build node on ${{ matrix.target.os }}
2121
runs-on: ${{ matrix.target.os }}
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v3
2424
with:
2525
ref: ${{ github.event.pull_request.head.sha }}
2626

@@ -36,8 +36,7 @@ jobs:
3636
toolchain: 1.63.0
3737
components: rustfmt, clippy
3838
override: true
39-
40-
- uses: actions/cache@v4
39+
- uses: actions/cache@v3
4140
with:
4241
path: |
4342
~/.cargo/bin/
@@ -46,13 +45,10 @@ jobs:
4645
~/.cargo/registry/cache/
4746
~/.cargo/git/db/
4847
target/
49-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
50-
restore-keys: |
51-
${{ runner.os }}-cargo-
48+
key: ${{ runner.os }}-cargo
5249

5350
- name: Build ${{ matrix.target.os }}
5451
run: |
55-
git fetch
5652
./ci/all.sh
5753
./ci/multinode_integration_test.sh
5854
./ci/collect_results.sh
@@ -70,52 +66,46 @@ jobs:
7066
df -h /Users/runner/work/Node/Node/node/target/release
7167
deploy_to_s3:
7268
needs: build
73-
if: success() && (startsWith(github.head_ref, 'GH') || startsWith(github.head_ref, 'v'))
7469
strategy:
7570
matrix:
76-
os: [linux, macos, windows]
77-
runs-on: ubuntu-latest
71+
os: [linux, macos, windows]
72+
runs-on: ubuntu-22.04
7873
steps:
79-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v3
8075
with:
8176
ref: ${{ github.event.pull_request.head.sha }}
82-
fetch-depth: 1
8377

8478
- name: Download artifacts
8579
uses: actions/download-artifact@v4
8680

8781
- name: Display structure of downloaded files
8882
run: ls -R
8983

90-
- name: Check artifacts exist
91-
run: |
92-
if [ ! -d "Node-${{ matrix.os }}/generated/bin/" ]; then
93-
echo "Error: Build artifacts not found"
94-
exit 1
95-
fi
96-
97-
- name: Configure AWS Credentials
98-
uses: aws-actions/configure-aws-credentials@v4
99-
with:
100-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
101-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
102-
aws-region: us-west-2
103-
10484
- if: startsWith(github.head_ref, 'GH')
10585
name: Versioned S3 Sync
106-
run: |
107-
aws s3 sync "Node-${{ matrix.os }}/generated/bin/" "s3://${{ secrets.AWS_S3_BUCKET }}/Node/${{ github.head_ref }}/Node-${{ matrix.os }}" \
108-
--delete \
109-
--no-progress \
110-
--acl private
86+
uses: jakejarvis/s3-sync-action@v0.5.1
87+
with:
88+
args: --acl private --follow-symlinks --delete
89+
env:
90+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
91+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
92+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
93+
AWS_REGION: 'us-west-2'
94+
DEST_DIR: 'Node/${{ github.head_ref }}/Node-${{ matrix.os }}'
95+
SOURCE_DIR: 'Node-${{ matrix.os }}/generated/bin/'
11196

11297
- if: startsWith(github.head_ref, 'v')
11398
name: Latest S3 Sync
114-
run: |
115-
aws s3 sync "Node-${{ matrix.os }}/generated/bin/" "s3://${{ secrets.AWS_S3_BUCKET }}/Node/latest/Node-${{ matrix.os }}" \
116-
--delete \
117-
--no-progress \
118-
--acl private
99+
uses: jakejarvis/s3-sync-action@v0.5.1
100+
with:
101+
args: --acl private --follow-symlinks --delete
102+
env:
103+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
104+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
105+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
106+
AWS_REGION: 'us-west-2'
107+
DEST_DIR: 'Node/latest/Node-${{ matrix.os }}'
108+
SOURCE_DIR: 'Node-${{ matrix.os }}/generated/bin/'
119109

120110
- name: Invalidate Binaries CloudFront
121111
uses: chetan/invalidate-cloudfront-action@v2.4

.github/workflows/dbip_download.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

automap/Cargo.lock

Lines changed: 3 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/all.sh

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
#!/bin/bash -xev
22
# Copyright (c) 2019, MASQ (https://masq.ai) and/or its affiliates. All rights reserved.
33
CI_DIR="$( cd "$( dirname "$0" )" && pwd )"
4-
export ARGV_1="$1"
4+
PARENT_DIR="$1"
55

66
ci/format.sh
77

88
export RUST_BACKTRACE=1
9-
#if github checkout fails, you can download csv database from db-ip.com and convert it locally by cargo run ip_country
10-
if [[ $GITHUB_ACTIONS || "$ARGV_1" == "dbip" ]]; then
11-
git checkout origin/generated-source -- ip_country/src/dbip_country.rs
12-
ls -la ip_country/src/dbip_country.rs
13-
fi
14-
if [[ -z "${GITHUB_ACTIONS}" ]]; then
15-
bash ./install-hooks.sh
16-
fi
9+
1710
# Remove these two lines to slow down the build
1811
which sccache || cargo install --version 0.4.1 sccache || echo "Skipping sccache installation" # Should do significant work only once
1912
#export CARGO_TARGET_DIR="$CI_DIR/../cargo-cache"
@@ -25,19 +18,19 @@ export RUSTFLAGS="-D warnings -Anon-snake-case"
2518
echo "*********************************************************************************************************"
2619
echo "*** MASQ_LIB HEAD ***"
2720
cd "$CI_DIR/../masq_lib"
28-
ci/all.sh
21+
ci/all.sh "$PARENT_DIR"
2922
echo "*** MASQ_LIB TAIL ***"
3023
echo "*********************************************************************************************************"
3124
echo "*********************************************************************************************************"
3225
echo "*** NODE HEAD ***"
3326
cd "$CI_DIR/../node"
34-
ci/all.sh
27+
ci/all.sh "$PARENT_DIR"
3528
echo "*** NODE TAIL ***"
3629
echo "*********************************************************************************************************"
3730
echo "*********************************************************************************************************"
3831
echo "*** DNS UTILITY HEAD ***"
3932
cd "$CI_DIR/../dns_utility"
40-
ci/all.sh
33+
ci/all.sh "$PARENT_DIR"
4134
echo "*** DNS UTILITY TAIL ***"
4235
echo "*********************************************************************************************************"
4336
echo "*********************************************************************************************************"
@@ -49,12 +42,13 @@ echo "**************************************************************************
4942
echo "*********************************************************************************************************"
5043
echo "*** AUTOMAP HEAD ***"
5144
cd "$CI_DIR/../automap"
52-
ci/all.sh
45+
ci/all.sh "$PARENT_DIR"
5346
echo "*** AUTOMAP TAIL ***"
5447
echo "*********************************************************************************************************"
5548
echo "*********************************************************************************************************"
5649
echo "*** IP COUNTRY HEAD ***"
5750
cd "$CI_DIR/../ip_country"
58-
ci/all.sh
51+
ci/all.sh "$PARENT_DIR"
5952
echo "*** IP COUNTRY TAIL ***"
6053
echo "*********************************************************************************************************"
54+

0 commit comments

Comments
 (0)