Skip to content

Commit

Permalink
CI:Do not use deprecated set-output, update artifact publishing action (
Browse files Browse the repository at this point in the history
#720)

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Jan 11, 2023
1 parent f413d78 commit eb788cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/actions/upload-docker-logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
shell: bash
run: tar cvzf ./logs.tgz ./logs
- name: "Upload logs to GitHub"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}
path: ./logs.tgz
28 changes: 14 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ jobs:
HASH_DOCKER_LIBVCX=${HASH_DOCKERFILE_LIBVCX:0:11}-${HASH_SRC_LIBVCX:0:11}-${HASH_SRC_ARIESVCX:0:11}-${HASH_SRC_AGENCYCLIENT:0:11}-${HASH_SRC_MESSAGES:0:11}
HASH_DOCKER_ANDROID=${HASH_DOCKER_LIBVCX}-${HASH_SRC_ARIESVCX:0:11}-${HASH_SRC_WRAPPER_JAVA:0:15}
echo "::set-output name=DOCKER_IMG_CACHED_ALPINE_CORE::$DOCKER_REPO_LOCAL_ALPINE_CORE:$HASH_DOCKERFILE_ALPINE_CORE"
echo "::set-output name=DOCKER_IMG_CACHED_LIBVCX::$DOCKER_REPO_LOCAL_LIBVCX:$HASH_DOCKER_LIBVCX"
echo "::set-output name=DOCKER_IMG_CACHED_ANDROID::$DOCKER_REPO_LOCAL_ANDROID:$HASH_DOCKER_ANDROID"
echo "DOCKER_IMG_CACHED_ALPINE_CORE=$DOCKER_REPO_LOCAL_ALPINE_CORE:$HASH_DOCKERFILE_ALPINE_CORE" >> $GITHUB_OUTPUT
echo "DOCKER_IMG_CACHED_LIBVCX=$DOCKER_REPO_LOCAL_LIBVCX:$HASH_DOCKER_LIBVCX" >> $GITHUB_OUTPUT
echo "DOCKER_IMG_CACHED_ANDROID=$DOCKER_REPO_LOCAL_ANDROID:$HASH_DOCKER_ANDROID" >> $GITHUB_OUTPUT
clippy-aries-vcx:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
name: codecov-unit-aries-vcx
fail_ci_if_error: true
path_to_write_report: /tmp/artifacts/coverage/codecov_report.gz
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: code-coverage-report-unit-aries-vcx
path: /tmp/artifacts/coverage
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
name: codecov-unit-aries-vcx
fail_ci_if_error: true
path_to_write_report: /tmp/artifacts/coverage/codecov_report.gz
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: code-coverage-report-unit-aries-vcx
path: /tmp/artifacts/coverage
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
name: codecov-unit-aries-vcx
fail_ci_if_error: true
path_to_write_report: /tmp/artifacts/coverage/codecov_report.gz
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: code-coverage-report-unit-aries-vcx
path: /tmp/artifacts/coverage
Expand Down Expand Up @@ -459,12 +459,12 @@ jobs:
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
run: |
./wrappers/ios/ci/build.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
with:
name: libvcx-ios-${{ env.PUBLISH_VERSION }}-device
path: /tmp/artifacts/libvcx-ios-${{ env.PUBLISH_VERSION }}-device.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
with:
name: libvcx-ios-${{ env.PUBLISH_VERSION }}-universal
Expand Down Expand Up @@ -496,12 +496,12 @@ jobs:
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
run: |
mv /tmp/artifacts/libvcx-ios-${{ env.PUBLISH_VERSION }}-universal.zip /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-universal.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
with:
name: libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-device
path: /tmp/artifacts/libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-device.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ needs.workflow-setup.outputs.SKIP_IOS != 'true' }}
with:
name: libvcx-ios-legacy-${{ env.PUBLISH_VERSION }}-universal
Expand Down Expand Up @@ -536,7 +536,7 @@ jobs:
full-version-name: ${{ env.FULL_VERSION_NAME }}
- name: "Publish aar artifact"
if: ${{ needs.workflow-setup.outputs.SKIP_ANDROID != 'true' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ env.FULL_VERSION_NAME }}
path: /tmp/artifacts/aar/${{ env.FULL_VERSION_NAME }}.aar
Expand Down Expand Up @@ -568,7 +568,7 @@ jobs:
abis: "x86 x86_64"
docker-img-name: ${{ needs.workflow-setup.outputs.DOCKER_IMG_CACHED_ANDROID }}
full-version-name: ${{ env.FULL_VERSION_NAME }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ needs.workflow-setup.outputs.SKIP_ANDROID != 'true' }}
with:
name: ${{ env.FULL_VERSION_NAME }}
Expand All @@ -592,7 +592,7 @@ jobs:
- name: "Build libvcx.so"
run: cargo build --release
- name: "Publish artifact libvcx.so"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: libvcx.so
path: target/release/libvcx.so
Expand All @@ -616,7 +616,7 @@ jobs:
- name: "Build libvcx.dylib"
run: cargo build --release
- name: "Publish artifact libvcx.dylib"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: libvcx.dylib
path: target/release/libvcx.dylib
Expand Down

0 comments on commit eb788cd

Please sign in to comment.