File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 10
10
submodules : recursive
11
11
- name : Install deps
12
12
run : sudo apt-get install -y git cmake zip libc++1-12 libc++abi-12-dev libc++-12-dev libc++abi1-12
13
+ - name : Retrieve version
14
+ run : |
15
+ echo "TAG_NAME=$(cat CMakeLists.txt | grep -Po '(?<=MODLOADER_VERSION \")[^\"]+')" >> $GITHUB_OUTPUT
16
+ id : version
17
+ - name : Print version
18
+ env :
19
+ VERSION : ${{ steps.version.outputs.TAG_NAME }}
20
+ run : echo "$VERSION"
13
21
- name : Build
14
22
run : mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_INSTALL_PREFIX=../sdk/ .. && make && make install && cd ..
15
23
- name : Pack the SDK and modloader
31
39
if : startsWith(github.event.head_commit.message, '[Release]')
32
40
with :
33
41
draft : true
34
- tag_name : test-rel
42
+ tag_name : ${{ steps.version.outputs.TAG_NAME }}
35
43
files : |
36
44
artifacts/libserver_modloader.so
37
45
artifacts/mod_sdk.zip
You can’t perform that action at this time.
0 commit comments