Skip to content

Commit 088ee95

Browse files
committed
Update CreateRelease workflow
Signed-off-by: Simon Davies <[email protected]>
1 parent 5d03294 commit 088ee95

File tree

1 file changed

+5
-44
lines changed

1 file changed

+5
-44
lines changed

.github/workflows/CreateRelease.yml

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525

26-
- name: Install az-cli (Linux mariner) (move into hyperlight-workflow-setup!)
27-
if: ${{ (runner.os == 'Linux') }}
28-
run: |
29-
if command -v dnf > /dev/null 2>&1; then
30-
sudo dnf install azure-cli -y
31-
fi
32-
shell: bash
33-
34-
3526
- uses: hyperlight-dev/[email protected]
3627
with:
3728
rust-toolchain: "1.81.0"
@@ -94,8 +85,6 @@ jobs:
9485
# see https://github.com/orgs/community/discussions/26286#discussioncomment-3251208 for why we need to check the ref
9586
if: ${{ contains(github.ref, 'refs/heads/release/') }} || ${{ github.ref=='refs/heads/main' }}
9687
runs-on: windows-2022
97-
outputs:
98-
HYPERLIGHT_VERSION: ${{ steps.set_hyperlight_version.outputs.HYPERLIGHT_VERSION }}
9988
needs:
10089
[
10190
build-rust-ubuntu,
@@ -104,11 +93,6 @@ jobs:
10493
benchmarks,
10594
]
10695

107-
env:
108-
PLATFORM: x64
109-
FRAMEWORK: net6.0
110-
DOTNET_INSTALL_DIR: "./.dotnet"
111-
11296
steps:
11397
- name: Set Debug Configuration
11498
if: ${{ github.ref=='refs/heads/main' }}
@@ -131,27 +115,15 @@ jobs:
131115
env:
132116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133117

134-
- name: Setup dotnet
135-
uses: actions/[email protected]
136-
with:
137-
dotnet-version: 6.0.x
138-
139-
- name: Add msbuild to PATH
140-
uses: microsoft/setup-msbuild@v2
141-
with:
142-
msbuild-architecture: x64
143-
144-
- name: Install minver cli
145-
run: dotnet tool install minver-cli --global
146-
shell: pwsh
147-
148118
- name: Set HYPERLIGHT_VERSION
119+
if: ${{ contains(github.ref, 'refs/heads/release/') }}
149120
id: set_hyperlight_version
150121
run: |
151122
git fetch --tags
152-
minver -vd -tv -p preview -a minor
153-
echo "HYPERLIGHT_VERSION=$(minver -vd -tv -p preview -a minor)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
154-
echo "HYPERLIGHT_VERSION=$(minver -vd -tv -p preview -a minor)" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf-8 -Append
123+
$version="${{ github.ref }}"
124+
$version=$version -replace "refs/heads/release/v", ""
125+
echo "HYPERLIGHT_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
126+
echo "HYPERLIGHT_VERSION=$Env:HYPERLIGHT_VERSION"
155127
shell: pwsh
156128

157129
- name: Ensure path exists for debug build
@@ -183,17 +155,6 @@ jobs:
183155
just tar-headers
184156
just tar-static-lib
185157
186-
- name: Determine if we should publish github packages
187-
run: |
188-
echo "github.ref=${{ github.ref }}"
189-
echo "HYPERLIGHT_VERSION=$Env:HYPERLIGHT_VERSION"
190-
if (('${{ github.ref }}'.contains('refs/heads/release')) -or
191-
(('${{ github.ref }}'.contains('refs/heads/main')) -and
192-
($Env:HYPERLIGHT_VERSION.contains('-preview')))) {
193-
echo "Setting SHOULD_PUBLISH in GITHUB_ENV"
194-
echo "SHOULD_PUBLISH=true" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
195-
}
196-
197158
- name: Download benchmarks (Windows)
198159
uses: actions/download-artifact@v4
199160
with:

0 commit comments

Comments
 (0)