Skip to content

Commit 0341265

Browse files
[DO-000] update artifacts step to use v4 (#146)
* comment all jobs but one * comment rest of workflow * update artifacts jobs to v4 * update * update artifacts actions * specifiy download artifact dir * uncomment all * fix all artifacts steps to v4
1 parent ca76268 commit 0341265

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ jobs:
5353
# RUSTC_WRAPPER: "sccache"
5454
working-directory: crates/generator
5555
- name: Upload Generated Artifacts
56-
uses: RDXWorks-actions/upload-artifact@main
56+
uses: RDXWorks-actions/upload-artifact-v4@main
5757
with:
5858
name: "schemas-and-test-kit"
5959
path: "crates/generator/output"
60+
6061
build:
6162
runs-on: ${{ matrix.build-target.runner }}
6263
continue-on-error: true
@@ -180,11 +181,13 @@ jobs:
180181
- name: Clean Build Artifacts
181182
run: find "target/${{ matrix.build-target.target-triple }}/release" -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
182183
- name: Upload Artifacts
183-
uses: RDXWorks-actions/upload-artifact@main
184+
uses: RDXWorks-actions/upload-artifact-v4@main
184185
with:
185186
name: ${{ matrix.build-target.crate }}-${{ matrix.build-target.target-triple }}
186187
path: "target/${{ matrix.build-target.target-triple }}/release"
188+
187189
generate-uniffi-bindings:
190+
name: "Generate Uniffi bindings"
188191
needs: [build]
189192
runs-on: ubuntu-latest
190193
steps:
@@ -205,7 +208,7 @@ jobs:
205208
path: uniffi-bindgen-go
206209
submodules: 'recursive'
207210
ref: 062d054e8ffd9206fc5231d6eba074d3b40cada9
208-
- uses: RDXWorks-actions/download-artifact@main
211+
- uses: RDXWorks-actions/download-artifact-v4@main
209212
with:
210213
path: artifacts
211214
- name: Generate the Bindings
@@ -237,10 +240,11 @@ jobs:
237240
--lib-file $DYNAMIC_LIBRARY_PATH \
238241
--no-format
239242
- name: Upload Artifacts
240-
uses: RDXWorks-actions/upload-artifact@main
243+
uses: RDXWorks-actions/upload-artifact-v4@main
241244
with:
242245
name: uniffi-bindings
243246
path: uniffi-bindings
247+
244248
publish-swift-spm:
245249
needs: [build, generate-uniffi-bindings]
246250
runs-on: macos-latest
@@ -255,7 +259,7 @@ jobs:
255259
repository: radixdlt/swift-engine-toolkit
256260
token: ${{ secrets.RADIX_BOT_PAT }}
257261
path: ./swift-engine-toolkit
258-
- uses: RDXWorks-actions/download-artifact@main
262+
- uses: RDXWorks-actions/download-artifact-v4@main
259263
with:
260264
path: artifacts
261265
- name: Build XCFramework
@@ -368,7 +372,7 @@ jobs:
368372
git push $SET_UPSTREAM_FLAG origin $BRANCH
369373
git push origin $SPM_VERSION
370374
- name: Upload Artifacts
371-
uses: RDXWorks-actions/upload-artifact@main
375+
uses: RDXWorks-actions/upload-artifact-v4@main
372376
with:
373377
name: "RadixEngineToolkit.xcframework"
374378
path: "./artifacts/RadixEngineToolkit.xcframework"
@@ -383,7 +387,7 @@ jobs:
383387
uses: RDXWorks-actions/checkout@main
384388
with:
385389
ref: ${{ inputs.ref }}
386-
- uses: RDXWorks-actions/download-artifact@main
390+
- uses: RDXWorks-actions/download-artifact-v4@main
387391
with:
388392
path: artifacts
389393
- name: Create Kotlin Library
@@ -442,7 +446,7 @@ jobs:
442446
- uses: RDXWorks-actions/checkout@main
443447
with:
444448
ref: ${{ inputs.ref }}
445-
- uses: RDXWorks-actions/download-artifact@main
449+
- uses: RDXWorks-actions/download-artifact-v4@main
446450
with:
447451
path: artifacts
448452
- name: Create Kotlin Library
@@ -485,7 +489,7 @@ jobs:
485489
uses: RDXWorks-actions/checkout@main
486490
with:
487491
ref: ${{ inputs.ref }}
488-
- uses: RDXWorks-actions/download-artifact@main
492+
- uses: RDXWorks-actions/download-artifact-v4@main
489493
with:
490494
path: artifacts
491495
- name: Set up JDK 1.8
@@ -531,7 +535,7 @@ jobs:
531535
secret_name: 'arn:aws:secretsmanager:eu-west-2:${{ secrets.SECRETS_ACCOUNT_ID }}:secret:github-actions/radixdlt/radix-engine-toolkit/nuget-XrZrYj'
532536
parse_json: true
533537

534-
- uses: RDXWorks-actions/download-artifact@main
538+
- uses: RDXWorks-actions/download-artifact-v4@main
535539
with:
536540
path: artifacts
537541
- name: Setup .NET SDK
@@ -590,7 +594,7 @@ jobs:
590594
parse_json: true
591595
- name: Print Env
592596
run: env
593-
- uses: RDXWorks-actions/download-artifact@main
597+
- uses: RDXWorks-actions/download-artifact-v4@main
594598
with:
595599
path: artifacts
596600
- name: Set up Python 3.11
@@ -682,7 +686,7 @@ jobs:
682686
repository: radixdlt/radix-engine-toolkit-go
683687
ssh-key: ${{ env.RET_GO_REPO_SSH_KEY }}
684688
path: radix-engine-toolkit-go
685-
- uses: RDXWorks-actions/download-artifact@main
689+
- uses: RDXWorks-actions/download-artifact-v4@main
686690
with:
687691
path: artifacts
688692
- name: Set up Go

.github/workflows/release-kotlin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Clean Build Artifacts
6767
run: find "./${{ matrix.build-target.crate }}/target/${{ matrix.build-target.target-triple }}/release" -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
6868
- name: Upload Artifacts
69-
uses: RDXWorks-actions/upload-artifact@main
69+
uses: RDXWorks-actions/upload-artifact-v4@main
7070
with:
7171
name: ${{ matrix.build-target.crate }}-${{ matrix.build-target.target-triple }}
7272
path: "./${{ matrix.build-target.crate }}/target/${{ matrix.build-target.target-triple }}/release"
@@ -83,7 +83,7 @@ jobs:
8383
path: uniffi-bindgen-cs
8484
submodules: 'recursive'
8585
ref: f1a6ef67449b47028fd5c3d8e5c6d3b80ddefd2b
86-
- uses: RDXWorks-actions/download-artifact@main
86+
- uses: RDXWorks-actions/download-artifact-v4@main
8787
with:
8888
path: artifacts
8989
- name: Generate the Bindings
@@ -108,7 +108,7 @@ jobs:
108108
--out-dir $OUTPUT_DIRECTORY \
109109
--lib-file $DYNAMIC_LIBRARY_PATH
110110
- name: Upload Artifacts
111-
uses: RDXWorks-actions/upload-artifact@main
111+
uses: RDXWorks-actions/upload-artifact-v4@main
112112
with:
113113
name: uniffi-bindings
114114
path: uniffi-bindings
@@ -152,7 +152,7 @@ jobs:
152152
secret_name: 'arn:aws:secretsmanager:eu-west-2:${{ secrets.SECRETS_ACCOUNT_ID }}:secret:github-actions/radixdlt/radix-engine-toolkit/gpg-passphrase-S59PVR'
153153
parse_json: true
154154
- uses: RDXWorks-actions/checkout@main
155-
- uses: RDXWorks-actions/download-artifact@main
155+
- uses: RDXWorks-actions/download-artifact-v4@main
156156
with:
157157
path: artifacts
158158
- name: Create Kotlin Library

0 commit comments

Comments
 (0)