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
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
0 commit comments