Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Do not use deprecated set-output, update artifact publishing action #720

Merged
merged 1 commit into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -76,9 +76,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 @@ -258,7 +258,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 @@ -287,7 +287,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 @@ -317,7 +317,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 @@ -455,12 +455,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 @@ -492,12 +492,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 @@ -532,7 +532,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 @@ -564,7 +564,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 @@ -588,7 +588,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 @@ -612,7 +612,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