Skip to content

Commit c56539a

Browse files
committed
Ugly fix for making vcpkg cache work
1 parent 792cc6c commit c56539a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: release
22
on:
33
push:
4+
branches:
5+
- '*'
46
tags:
5-
- '*'
7+
- '*'
68

79
jobs:
810
job:
@@ -17,54 +19,65 @@ jobs:
1719

1820
steps:
1921
- uses: actions/checkout@v3
22+
if: startsWith(github.ref, 'refs/tags/')
2023
with:
2124
submodules: true
2225

2326
- uses: lukka/get-cmake@latest
2427

2528
- name: Restore from cache and setup vcpkg executable and data files.
29+
if: startsWith(github.ref, 'refs/tags/')
2630
uses: lukka/run-vcpkg@v11
2731
with:
2832
vcpkgJsonGlob: 'vcpkg.json'
2933
vcpkgGitCommitId: d5ec528843d29e3a52d745a64b469f810b2cedbf
3034

3135
- name: Set up Python 3.11
36+
if: startsWith(github.ref, 'refs/tags/')
3237
uses: actions/setup-python@v4
3338
with:
3439
python-version: 3.11
3540

3641
- name: Setup system
42+
if: startsWith(github.ref, 'refs/tags/')
3743
run: |
3844
sudo apt-get update
3945
sudo apt-get install -y linux-libc-dev liburing-dev
4046
4147
- name: Setup pnpm
48+
if: startsWith(github.ref, 'refs/tags/')
4249
uses: pnpm/action-setup@v4
4350
with:
4451
version: 10
4552

4653
- name: Install Node.js
54+
if: startsWith(github.ref, 'refs/tags/')
4755
uses: actions/setup-node@v4
4856
with:
4957
node-version: 20
5058
cache: 'pnpm'
5159
cache-dependency-path: './www/pnpm-lock.yaml'
5260

5361
- name: Build
62+
if: startsWith(github.ref, 'refs/tags/')
5463
run: bash build.sh
5564

5665
- name: Install Python dependencies
66+
if: startsWith(github.ref, 'refs/tags/')
5767
run: pip install -r test/requirements.txt
5868

5969
- name: Install pytest dependencies
70+
if: startsWith(github.ref, 'refs/tags/')
6071
run: pip install pytest-md pytest-emoji
6172

6273
- uses: pavelzw/pytest-action@v2
74+
if: startsWith(github.ref, 'refs/tags/')
6375
with:
6476
emoji: false
6577
custom-arguments: -p no:sugar test
6678

6779
- name: Create Release
80+
if: startsWith(github.ref, 'refs/tags/')
6881
uses: ncipollo/release-action@v1
6982
with:
7083
artifacts: "hs5*.xz"

0 commit comments

Comments
 (0)