From 24c3c066bf9f0f31fcb104c8102b5f34f48dc3b4 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Wed, 18 Sep 2024 19:48:59 -0400 Subject: [PATCH] i#2511 macos-12: Remove mac fully from package script (#2513) Removes other pieces of the Mac build that were not fully removed from PR #2512. Updates download-artifact and upload-artifact to v4.x.x as the old version won't run anymore (and has a security vulnerability). Issue: #2511 --- .github/workflows/ci-package.yml | 37 ++++++++++++-------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci-package.yml b/.github/workflows/ci-package.yml index f4b109e5..b36c1455 100644 --- a/.github/workflows/ci-package.yml +++ b/.github/workflows/ci-package.yml @@ -113,7 +113,8 @@ jobs: DEPLOY_DOCS: no - name: Upload Artifacts - uses: actions/upload-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/upload-artifact@v4 with: name: linux-tarball path: DrMemory-Linux-${{ steps.version.outputs.version_number }}.tar.gz @@ -179,13 +180,15 @@ jobs: VERSION_NUMBER: ${{ steps.version.outputs.version_number }} - name: Upload Zip - uses: actions/upload-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/upload-artifact@v4 with: name: windows-zip path: DrMemory-Windows-${{ steps.version.outputs.version_number }}.zip - name: Upload Msi - uses: actions/upload-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/upload-artifact@v4 with: name: windows-msi path: DrMemory-Windows-${{ steps.version.outputs.version_number }}.msi @@ -196,10 +199,10 @@ jobs: # succeeds and the others fail: there is no check in the create-release # action to use an existing release if it already exists. # Thus, our strategy is to share files from the build jobs with this - # single relese job via artifacts. + # single release job via artifacts. create_release: - needs: [x86, osx, windows] + needs: [x86, windows] runs-on: ubuntu-20.04 steps: @@ -245,7 +248,8 @@ jobs: prerelease: false - name: Download Linux - uses: actions/download-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/download-artifact@v4 with: name: linux-tarball - name: Upload Linux @@ -259,23 +263,9 @@ jobs: asset_name: DrMemory-Linux-${{ steps.version.outputs.version_number }}.tar.gz asset_content_type: application/x-gzip - - name: Download Mac - uses: actions/download-artifact@v2 - with: - name: mac-tarball - - name: Upload Mac - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - # This action doesn't seem to support a glob so we need the exact name. - asset_path: DrMemory-MacOS-${{ steps.version.outputs.osx_version_number }}.tar.gz - asset_name: DrMemory-MacOS-${{ steps.version.outputs.osx_version_number }}.tar.gz - asset_content_type: application/x-gzip - - name: Download Zip - uses: actions/download-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/download-artifact@v4 with: name: windows-zip - name: Upload Zip @@ -290,7 +280,8 @@ jobs: asset_content_type: application/zip - name: Download Msi - uses: actions/download-artifact@v2 + # This points to the latest v4.x.x. + uses: actions/download-artifact@v4 with: name: windows-msi - name: Upload Msi