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 1010 submodules : recursive
1111 - name : Install deps
1212 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"
1321 - name : Build
1422 run : mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_INSTALL_PREFIX=../sdk/ .. && make && make install && cd ..
1523 - name : Pack the SDK and modloader
3139 if : startsWith(github.event.head_commit.message, '[Release]')
3240 with :
3341 draft : true
34- tag_name : test-rel
42+ tag_name : ${{ steps.version.outputs.TAG_NAME }}
3543 files : |
3644 artifacts/libserver_modloader.so
3745 artifacts/mod_sdk.zip
You can’t perform that action at this time.
0 commit comments