File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ jobs:
25
25
sudo apt-get install -y python3.9 python3.9-dev
26
26
- name : Set PY_HEX_VERSION
27
27
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
28
30
- name : Set cflags
29
31
run : echo CFLAGS="$(python3.9-config --includes) -DPy_LIMITED_API=$PY_HEX_VERSION -Wno-incompatible-pointer-types" >> $GITHUB_ENV
30
32
- name : Set ldflags
31
33
run : echo LDFLAGS="$(python3.9-config --embed --libs)" >> $GITHUB_ENV
32
34
- name : Run tests
33
35
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
35
37
uses : schneegans/dynamic-badges-action@v1.1.0
36
38
with :
37
39
auth : ${{ secrets.GIST_SECRET }}
40
42
label : Python
41
43
message : ${{ env.PY_HEX_VERSION }}
42
44
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
You can’t perform that action at this time.
0 commit comments