Skip to content

Commit 9bdaaaf

Browse files
Remove macOS Intel build and update release workflow (#114)
The workflow for building and releasing the Key Vault Explorer project has been updated. The `build_macos_intel` job and its associated steps have been removed. The `build_windows_arm` job has been added to the `needs` section of the `release` job. The release upload command has been modified to exclude the macOS Intel artifact, now only uploading the macOS Arm64, Linux x64, and Windows artifacts.
1 parent 76bbebd commit 9bdaaaf

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -69,35 +69,6 @@ jobs:
6969
with:
7070
name: keyvaultexplorer.win-arm64
7171
path: keyvaultexplorer.win-arm64.tar
72-
build_macos_intel:
73-
name: Build macOS intel
74-
runs-on: macos-12
75-
steps:
76-
- uses: actions/checkout@v4
77-
- name: Setup .NET
78-
uses: actions/setup-dotnet@v4
79-
with:
80-
dotnet-version: 9.0.x
81-
- uses: actions/cache@v3
82-
with:
83-
path: ~/.nuget/osx-intel-packages
84-
# Look to see if there is a cache hit for the corresponding requirements file
85-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
86-
restore-keys: |
87-
mac-nuget
88-
- name: publish_macOS_intel
89-
run: |
90-
./build.ps1 -Runtime osx-x64 -PublishAot -BuildNumber '1.0.${{github.run_number }}'
91-
New-Item -ItemType Directory -Path "osx-x64"
92-
Move-Item -Path "Key Vault Explorer for Azure.app" -Destination "$env:GITHUB_WORKSPACE\osx-x64\Key Vault Explorer for Azure.app"
93-
shell: pwsh
94-
- name: Create Package
95-
run: tar -cvf keyvaultexplorer.osx-x64.tar osx-x64/
96-
- name: Upload Artifact
97-
uses: actions/upload-artifact@v4
98-
with:
99-
name: keyvaultexplorer.osx-x64
100-
path: keyvaultexplorer.osx-x64.tar
10172
build_macos:
10273
name: Build macOS Arm64
10374
runs-on: macos-latest
@@ -162,7 +133,7 @@ jobs:
162133

163134
release:
164135
name: Release code
165-
needs: [ build_macos, build_windows, build_macos_intel, build_linux]
136+
needs: [ build_macos, build_windows, build_windows_arm, build_linux]
166137
runs-on: ubuntu-latest
167138
steps:
168139
- uses: actions/checkout@v4
@@ -174,7 +145,7 @@ jobs:
174145
run: |
175146
Get-ChildItem -Recurse
176147
gh release create v1.0.${{github.run_number }} --draft
177-
gh release upload v1.0.${{github.run_number }} "./keyvaultexplorer.win-x64/keyvaultexplorer.win-x64.tar" "./keyvaultexplorer.win-arm64/keyvaultexplorer.win-arm64.tar" "./keyvaultexplorer.osx-arm64/keyvaultexplorer.osx-arm64.tar" "./keyvaultexplorer.osx-x64/keyvaultexplorer.osx-x64.tar" "./keyvaultexplorer.linux-x64/keyvaultexplorer.linux-x64.tar"
148+
gh release upload v1.0.${{github.run_number }} "./keyvaultexplorer.win-x64/keyvaultexplorer.win-x64.tar" "./keyvaultexplorer.win-arm64/keyvaultexplorer.win-arm64.tar" "./keyvaultexplorer.osx-arm64/keyvaultexplorer.osx-arm64.tar" "./keyvaultexplorer.linux-x64/keyvaultexplorer.linux-x64.tar"
178149
env:
179150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180151
shell: pwsh

0 commit comments

Comments
 (0)