Skip to content

Commit eb48719

Browse files
committed
Fix release workflow: use macos-13 for x86_64, remove Windows
1 parent 81eff09 commit eb48719

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ jobs:
2525
- target: x86_64-unknown-linux-gnu
2626
os: ubuntu-latest
2727
name: zen-linux-x86_64
28+
# macos-13 is Intel-based, required for x86_64 builds
2829
- target: x86_64-apple-darwin
29-
os: macos-15
30+
os: macos-13
3031
name: zen-macos-x86_64
32+
# macos-14 is ARM-based (Apple Silicon)
3133
- target: aarch64-apple-darwin
3234
os: macos-14
3335
name: zen-macos-arm64
34-
- target: x86_64-pc-windows-msvc
35-
os: windows-latest
36-
name: zen-windows-x86_64
3736

3837
steps:
3938
- uses: actions/checkout@v4
@@ -59,12 +58,6 @@ jobs:
5958
echo "LLVM_SYS_181_PREFIX=$(brew --prefix llvm@18)" >> $GITHUB_ENV
6059
echo "$(brew --prefix llvm@18)/bin" >> $GITHUB_PATH
6160
62-
- name: Install LLVM (Windows)
63-
if: matrix.os == 'windows-latest'
64-
run: |
65-
choco install llvm --version=18.1.8 --force -y
66-
echo "LLVM_SYS_181_PREFIX=C:\Program Files\LLVM" >> $env:GITHUB_ENV
67-
6861
- name: Cache Cargo
6962
uses: actions/cache@v4
7063
with:
@@ -81,31 +74,19 @@ jobs:
8174
- name: Build Release Binary
8275
run: cargo build --release --target ${{ matrix.target }}
8376

84-
- name: Prepare Binary (Unix)
85-
if: matrix.os != 'windows-latest'
77+
- name: Prepare Binary
8678
run: |
8779
mkdir -p dist
8880
cp target/${{ matrix.target }}/release/zen dist/
8981
cp target/${{ matrix.target }}/release/zen-lsp dist/ || true
9082
chmod +x dist/*
9183
cd dist && tar -czvf ../${{ matrix.name }}.tar.gz *
9284
93-
- name: Prepare Binary (Windows)
94-
if: matrix.os == 'windows-latest'
95-
run: |
96-
mkdir dist
97-
copy target\${{ matrix.target }}\release\zen.exe dist\
98-
copy target\${{ matrix.target }}\release\zen-lsp.exe dist\ 2>nul || echo "zen-lsp not found"
99-
cd dist && 7z a -tzip ..\${{ matrix.name }}.zip *
100-
10185
- name: Upload Artifact
10286
uses: actions/upload-artifact@v4
10387
with:
10488
name: ${{ matrix.name }}
105-
path: |
106-
${{ matrix.name }}.tar.gz
107-
${{ matrix.name }}.zip
108-
if-no-files-found: ignore
89+
path: ${{ matrix.name }}.tar.gz
10990

11091
release:
11192
name: Create Release
@@ -131,7 +112,7 @@ jobs:
131112
fi
132113
133114
- name: List Artifacts
134-
run: find artifacts -type f -name "*.tar.gz" -o -name "*.zip"
115+
run: find artifacts -type f -name "*.tar.gz"
135116

136117
- name: Create Release
137118
uses: softprops/action-gh-release@v2
@@ -141,8 +122,6 @@ jobs:
141122
draft: false
142123
prerelease: ${{ contains(steps.version.outputs.version, '-') }}
143124
generate_release_notes: true
144-
files: |
145-
artifacts/**/*.tar.gz
146-
artifacts/**/*.zip
125+
files: artifacts/**/*.tar.gz
147126
env:
148127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)