Skip to content

Commit 2a685c6

Browse files
committed
try fix zig build
1 parent 78a1369 commit 2a685c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
rustup target add ${{ matrix.target }}
5555
cargo install --locked cargo-zigbuild
56-
cross zigbuild --release --target ${{ matrix.target }}-gun.${{ matrix.glibc }} -p luals
56+
cargo zigbuild --release --target ${{ matrix.target }}.${{ matrix.glibc }} -p luals
5757
- name: package-uninx
5858
if: ${{ matrix.os != 'windows-latest' }}
5959
run: |
@@ -68,10 +68,17 @@ jobs:
6868
Copy-Item -Path ${{ github.workspace }}\target\${{ matrix.target }}\release\lua-language-server.exe -Destination ${{ github.workspace }}\artifact\bin
6969
shell: pwsh
7070
- name: Upload
71+
if: ${{ matrix.cross != 'zigbuild' }}
7172
uses: actions/upload-artifact@v3
7273
with:
7374
name: lua-language-server-${{ matrix.platform }}
7475
path: ${{ github.workspace }}/artifact/
76+
- name: Upload zigbuild
77+
if: ${{ matrix.cross == 'zigbuild' }}
78+
uses: actions/upload-artifact@v3
79+
with:
80+
name: lua-language-server-${{ matrix.platform }}.${{ matrix.glibc }}
81+
path: ${{ github.workspace }}/artifact/
7582
release:
7683
needs: build
7784
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)