@@ -73,59 +73,33 @@ jobs:
7373 - name : Build rust wasm modules
7474 run : just build-rust-wasm-examples ${{ env.CONFIG }}
7575 shell : bash
76- - name : Download Benchmarks (Windows)
76+ - name : Download all benchmarks
7777 uses : actions/download-artifact@v4
7878 with :
79- name : benchmarks_Windows_whp
80- path : benchmarks_Windows_whp
81- - name : Download Benchmarks (Linux hyperv)
82- uses : actions/download-artifact@v4
83- with :
84- name : benchmarks_Linux_hyperv
85- path : benchmarks_Linux_hyperv
86- - name : Download Benchmarks (Linux kvm)
87- uses : actions/download-artifact@v4
88- with :
89- name : benchmarks_Linux_kvm
90- path : benchmarks_Linux_kvm
79+ pattern : benchmarks_*
9180 - name : Archive benchmarks
9281 run : |
93- tar -zcvf benchmarks_Windows_whp.tar.gz benchmarks_Windows_whp
94- tar -zcvf benchmarks_Linux_hyperv.tar.gz benchmarks_Linux_hyperv
95- tar -zcvf benchmarks_Linux_kvm.tar.gz benchmarks_Linux_kvm
96- - name : Install github-cli
97- run : |
98- $ProgressPreference = 'SilentlyContinue'
99- # check if gh cli is installed
100- $installed = [bool](Get-Command -ErrorAction Ignore -Type Application gh)
101- if ($installed) { Write-Host "gh cli already installed"; exit 0 }
102- # download and install gh cli
103- Invoke-WebRequest https://github.com/cli/cli/releases/download/v2.50.0/gh_2.50.0_windows_amd64.msi -OutFile gh.msi
104- msiexec.exe /i gh.msi /quiet /l log.txt | Out-Null
105- Write-Host "msiexec exited with code $LASTEXITCCODE"
106- if ($LASTEXITCODE -ne 0) { cat log.txt; exit 1 }
82+ for BENCHMARK in benchmarks_*; do
83+ tar -zcvf $BENCHMARK.tar.gz $BENCHMARK
84+ done
10785 - name : Create pre-release
10886 if : ${{ github.ref=='refs/heads/main' }}
10987 run : |
110- echo "PWD: $PWD"
111- ls -alR
112- gh release delete dev-latest -y --cleanup-tag || true
113- gh release create dev-latest -t "Latest Development Build From Dev Branch" --latest=false -p \
114- benchmarks_Windows_whp.tar.gz \
115- benchmarks_Linux_hyperv.tar.gz \
116- benchmarks_Linux_kvm.tar.gz
88+ echo "PWD: $PWD"
89+ ls -alR
90+ gh release delete dev-latest -y --cleanup-tag || true
91+ gh release create dev-latest -t "Latest Development Build From Dev Branch" --latest=false -p \
92+ benchmarks_*.tar.gz
11793 env :
11894 GH_TOKEN : ${{ github.token }}
11995 shell : bash
12096 - name : Create Release
12197 if : ${{ contains(github.ref, 'refs/heads/release/') }}
12298 run : |
123- echo "PWD: $PWD"
124- ls -alR
125- gh release create v${{ env.HYPERLIGHTWASM_VERSION }} -t "Release v${{ env.HYPERLIGHTWASM_VERSION }}" --generate-notes \
126- benchmarks_Windows_whp.tar.gz \
127- benchmarks_Linux_hyperv.tar.gz \
128- benchmarks_Linux_kvm.tar.gz
99+ echo "PWD: $PWD"
100+ ls -alR
101+ gh release create v${{ env.HYPERLIGHTWASM_VERSION }} -t "Release v${{ env.HYPERLIGHTWASM_VERSION }}" --generate-notes \
102+ benchmarks_*.tar.gz
129103 env :
130104 GH_TOKEN : ${{ github.token }}
131105 shell : bash
0 commit comments