From d9d810cdb0e2db7c000e36fcafc4d7e42ed4cf34 Mon Sep 17 00:00:00 2001 From: Haki Atalov Date: Fri, 17 Apr 2026 23:21:06 -0400 Subject: [PATCH 1/3] Migrate workflow to ubuntu-latest with bash --- .github/workflows/build-release.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index fe77b034..42056712 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -21,7 +21,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout BLIS @@ -61,25 +61,24 @@ jobs: - name: Prepare Artifact Folders run: | - mkdir BLIS-Standalone + mkdir -p BLIS-Standalone # Copy BLISRuntime (excluding .git) - Copy-Item "./BLISRuntime/*" -Destination "./BLIS-Standalone/" -Recurse -Exclude ".git" + cp -r BLISRuntime/. BLIS-Standalone/ && rm -rf BLIS-Standalone/.git # Copy BLIS (excluding .git and the legacy EXEs) - Copy-Item "./BLIS/*" -Destination "./BLIS-Standalone/" -Recurse -Exclude ".git" - Remove-Item "./BLIS-Standalone/BLIS.exe" -ErrorAction SilentlyContinue - Remove-Item "./BLIS-Standalone/BLIS.exe.manifest" -ErrorAction SilentlyContinue + cp -r BLIS/. BLIS-Standalone/ && rm -rf BLIS-Standalone/.git + rm -f BLIS-Standalone/BLIS.exe BLIS-Standalone/BLIS.exe.manifest # Copy BLIS-NG executable - Copy-Item "./BLIS-NG/bin/Release/net10.0/win-x64/publish/BLIS-NG.exe" -Destination "./BLIS-Standalone/" + cp BLIS-NG/bin/Release/net10.0/win-x64/publish/BLIS-NG.exe BLIS-Standalone/ - name: Create Zip Archive run: | - Compress-Archive -Path "BLIS-Standalone/*" -DestinationPath BLIS-Standalone.zip + cd BLIS-Standalone && zip -r ../BLIS-Standalone.zip . && cd .. - name: Upload Artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v4 with: name: BLIS-Standalone path: BLIS-Standalone.zip From 6ba126e5025f892ba9872f21dbe79169ce2d768b Mon Sep 17 00:00:00 2001 From: Haki Atalov Date: Fri, 17 Apr 2026 23:30:48 -0400 Subject: [PATCH 2/3] Build the BLIS-Upgrade archive --- .github/workflows/build-release.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 42056712..4f2b7bbb 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -73,12 +73,27 @@ jobs: # Copy BLIS-NG executable cp BLIS-NG/bin/Release/net10.0/win-x64/publish/BLIS-NG.exe BLIS-Standalone/ - - name: Create Zip Archive + mkdir -p BLIS-Upgrade + + # Copy BLIS (excluding .git and local/ runtime data) + cp -r BLIS/. BLIS-Upgrade/ && rm -rf BLIS-Upgrade/.git BLIS-Upgrade/local + + # Copy BLISRuntime server component + cp -r BLISRuntime/server BLIS-Upgrade/server + + - name: Create Zip Archives run: | cd BLIS-Standalone && zip -r ../BLIS-Standalone.zip . && cd .. + cd BLIS-Upgrade && zip -r ../BLIS-Upgrade.zip . && cd .. - - name: Upload Artifact + - name: Upload Standalone Artifact uses: actions/upload-artifact@v4 with: name: BLIS-Standalone path: BLIS-Standalone.zip + + - name: Upload Upgrade Artifact + uses: actions/upload-artifact@v4 + with: + name: BLIS-Upgrade + path: BLIS-Upgrade.zip From 4def549b1d46b454b7e93310d38433faff9d7c31 Mon Sep 17 00:00:00 2001 From: Haki Atalov Date: Fri, 17 Apr 2026 23:33:00 -0400 Subject: [PATCH 3/3] Remove zip within a zip --- .github/workflows/build-release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 4f2b7bbb..b4539d01 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -81,19 +81,14 @@ jobs: # Copy BLISRuntime server component cp -r BLISRuntime/server BLIS-Upgrade/server - - name: Create Zip Archives - run: | - cd BLIS-Standalone && zip -r ../BLIS-Standalone.zip . && cd .. - cd BLIS-Upgrade && zip -r ../BLIS-Upgrade.zip . && cd .. - - name: Upload Standalone Artifact uses: actions/upload-artifact@v4 with: name: BLIS-Standalone - path: BLIS-Standalone.zip + path: BLIS-Standalone/ - name: Upload Upgrade Artifact uses: actions/upload-artifact@v4 with: name: BLIS-Upgrade - path: BLIS-Upgrade.zip + path: BLIS-Upgrade/