Fix Artifact Upload Issue on CI (#1936)

Fixes the nightly builds.
This commit is contained in:
Radosław Waśko 2021-08-10 21:05:39 +02:00 committed by GitHub
parent ca8252c9cf
commit 270479c9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 42 deletions

View File

@ -281,26 +281,20 @@ jobs:
sbt "enso/verifyGeneratedPackage Database ${{ env.ENGINE_DIST_DIR }}/lib/Standard/Database/0.1.0/THIRD-PARTY" sbt "enso/verifyGeneratedPackage Database ${{ env.ENGINE_DIST_DIR }}/lib/Standard/Database/0.1.0/THIRD-PARTY"
# Publish # Publish
- name: Upload the Engine Artifact - name: Compress the built artifacts for upload
# The artifacts are compressed before upload to work around an error with long path handling in the upload-artifact action on Windows.
shell: bash
working-directory: repo/built-distribution
run:
7z a -r built-distribution-${{ env.DIST_OS }}-${{ env.DIST_ARCH }}.zip
*
- name: Upload the Built Artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ env.ENGINE_DIST_NAME }} name: built-distribution-${{ env.DIST_OS }}-${{ env.DIST_ARCH }}
path: repo/${{ env.ENGINE_DIST_ROOT }} path:
- name: Upload the Launcher Artifact repo/built-distribution/built-distribution-${{ env.DIST_OS }}-${{
uses: actions/upload-artifact@v2 env.DIST_ARCH }}.zip
with:
name: ${{ env.LAUNCHER_DIST_NAME }}
path: repo/${{ env.LAUNCHER_DIST_ROOT }}
- name: Upload the Project Manager Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECTMANAGER_DIST_NAME }}
path: repo/${{ env.PROJECTMANAGER_DIST_ROOT }}
- name: Upload the GraalVM Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.GRAAL_DIST_NAME }}
path: repo/${{ env.GRAAL_DIST_ROOT }}
- name: Upload the Manifest Artifact - name: Upload the Manifest Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -325,16 +319,18 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
path: repo/built-distribution path: repo/built-distribution
- name: Display Structure of Downloaded Files
run: ls
working-directory: repo/built-distribution
- name: Unpack Artifacts
shell: bash
working-directory: repo/built-distribution
run: for f in built-distribution-*; do unzip -n "$f/$f.zip"; done
- name: Prepare Nodejs - name: Prepare Nodejs
shell: bash shell: bash
working-directory: repo/tools/ci/nightly working-directory: repo/tools/ci/nightly
run: npm install run: npm install
# This jobs can be used to debug errors, it may be removed
- name: Display Structure of Downloaded Files
run: ls
working-directory: repo/built-distribution
- name: Setup GraalVM Environment - name: Setup GraalVM Environment
uses: ayltai/setup-graalvm@v1 uses: ayltai/setup-graalvm@v1
with: with:

View File

@ -239,26 +239,20 @@ jobs:
sbt "enso/verifyGeneratedPackage Database ${{ env.ENGINE_DIST_DIR }}/lib/Standard/Database/0.1.0/THIRD-PARTY" sbt "enso/verifyGeneratedPackage Database ${{ env.ENGINE_DIST_DIR }}/lib/Standard/Database/0.1.0/THIRD-PARTY"
# Publish # Publish
- name: Upload the Engine Artifact - name: Compress the built artifacts for upload
# The artifacts are compressed before upload to work around an error with long path handling in the upload-artifact action on Windows.
shell: bash
working-directory: repo/built-distribution
run:
7z a -r built-distribution-${{ env.DIST_OS }}-${{ env.DIST_ARCH }}.zip
*
- name: Upload the Built Artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ env.ENGINE_DIST_NAME }} name: built-distribution-${{ env.DIST_OS }}-${{ env.DIST_ARCH }}
path: repo/${{ env.ENGINE_DIST_ROOT }} path:
- name: Upload the Launcher Artifact repo/built-distribution/built-distribution-${{ env.DIST_OS }}-${{
uses: actions/upload-artifact@v2 env.DIST_ARCH }}.zip
with:
name: ${{ env.LAUNCHER_DIST_NAME }}
path: repo/${{ env.LAUNCHER_DIST_ROOT }}
- name: Upload the Project Manager Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECTMANAGER_DIST_NAME }}
path: repo/${{ env.PROJECTMANAGER_DIST_ROOT }}
- name: Upload the GraalVM Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.GRAAL_DIST_NAME }}
path: repo/${{ env.GRAAL_DIST_ROOT }}
- name: Upload the Manifest Artifact - name: Upload the Manifest Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -283,6 +277,10 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
path: repo/built-distribution path: repo/built-distribution
- name: Unpack Artifacts
shell: bash
working-directory: repo/built-distribution
run: for f in built-distribution-*; do unzip -n "$f/$f.zip"; done
- name: Setup GraalVM Environment - name: Setup GraalVM Environment
uses: ayltai/setup-graalvm@v1 uses: ayltai/setup-graalvm@v1