Skip to content

Commit a10908d

Browse files
Fix release ci (#282)
Co-authored-by: star9029 <hengxings783@gmail.com>
1 parent dffa884 commit a10908d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ permissions:
66
on:
77
push:
88
tags:
9-
- 'v*'
9+
- "v*"
10+
11+
pull_request:
12+
branches: [main]
13+
paths:
14+
- ".github/workflows/release.yml"
1015

1116
jobs:
1217
package:
@@ -16,9 +21,9 @@ jobs:
1621
- os: windows-2025
1722
artifact_name: clice.7z
1823
asset_name: clice-x64-windows-msvc.7z
19-
toolchain: clang
24+
toolchain: clang-cl
2025

21-
- os: ubuntu-22.04
26+
- os: ubuntu-24.04
2227
artifact_name: clice.tar.xz
2328
asset_name: clice-x86_64-linux-gnu.tar.xz
2429
toolchain: clang-20
@@ -74,7 +79,14 @@ jobs:
7479
xmake config --yes --toolchain=${{ matrix.toolchain }} --sdk=/opt/homebrew/opt/llvm@20 --enable_test=n --dev=n --release=y
7580
xmake pack
7681
82+
- name: Install uv for integration tests
83+
uses: astral-sh/setup-uv@v6
84+
85+
- name: Run tests
86+
run: xmake test --verbose
87+
7788
- name: Upload binaries to release
89+
if: github.event_name == 'push'
7890
uses: svenstaro/upload-release-action@v2
7991
with:
8092
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)