@@ -73,59 +73,33 @@ jobs:
73
73
- name : Build rust wasm modules
74
74
run : just build-rust-wasm-examples ${{ env.CONFIG }}
75
75
shell : bash
76
- - name : Download Benchmarks (Windows)
76
+ - name : Download all benchmarks
77
77
uses : actions/download-artifact@v4
78
78
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_*
91
80
- name : Archive benchmarks
92
81
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
107
85
- name : Create pre-release
108
86
if : ${{ github.ref=='refs/heads/main' }}
109
87
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
117
93
env :
118
94
GH_TOKEN : ${{ github.token }}
119
95
shell : bash
120
96
- name : Create Release
121
97
if : ${{ contains(github.ref, 'refs/heads/release/') }}
122
98
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
129
103
env :
130
104
GH_TOKEN : ${{ github.token }}
131
105
shell : bash
0 commit comments