Skip to content

Commit 0535fdf

Browse files
authored
gen vlang version badge
1 parent ea85099 commit 0535fdf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ jobs:
2525
sudo apt-get install -y python3.9 python3.9-dev
2626
- name: Set PY_HEX_VERSION
2727
run: echo PY_HEX_VERSION="$(python3.9 -c 'import sys; print(hex(sys.hexversion))')" >> $GITHUB_ENV
28+
- name: Set VLANG_VERSION
29+
run: echo VLANG_VERSION="$(cut -d' ' -f2-3 <<< $(v --version))" >> $GITHUB_ENV
2830
- name: Set cflags
2931
run: echo CFLAGS="$(python3.9-config --includes) -DPy_LIMITED_API=$PY_HEX_VERSION -Wno-incompatible-pointer-types" >> $GITHUB_ENV
3032
- name: Set ldflags
3133
run: echo LDFLAGS="$(python3.9-config --embed --libs)" >> $GITHUB_ENV
3234
- name: Run tests
3335
run: v -stats -showcc -d py_limited_api -cc gcc test $GITHUB_WORKSPACE/*_test.v
34-
- name: Create the Badge
36+
- name: Create Python version badge
3537
uses: schneegans/dynamic-badges-action@v1.1.0
3638
with:
3739
auth: ${{ secrets.GIST_SECRET }}
@@ -40,3 +42,12 @@ jobs:
4042
label: Python
4143
message: ${{ env.PY_HEX_VERSION }}
4244
color: blue
45+
- name: Create V version badge
46+
uses: schneegans/dynamic-badges-action@v1.1.0
47+
with:
48+
auth: ${{ secrets.GIST_SECRET }}
49+
gistID: 4a5aafa6640cf68e738697dcc693810d
50+
filename: vpy_badge_vlangver.json
51+
label: V
52+
message: ${{ env.VLANG_VERSION }}
53+
color: purple

0 commit comments

Comments
 (0)