@@ -13,11 +13,16 @@ jobs:
1313 steps :
1414 - uses : actions/checkout@v4
1515
16+ - name : Install LLVM and Clang
17+ uses : KyleMayes/install-llvm-action@v2
18+ with :
19+ version : " 21.1.3"
20+
1621 - name : Pull submodule
1722 run : git submodule update --init
1823
19- - name : Configure CMake
20- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
24+ - name : Configure CMake with Clang-CL
25+ run : cmake -B ${{github.workspace}}/build -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl - DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMLDEBUG=OFF
2126
2227 - name : Build project
2328 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
2732 with :
2833 name : fli-modloader
2934 path : |
30- ./build/Release/ModLoader.dll
31- ./build/Release/ModLoader.lib
32- ./build/DllProxy/Release/version.dll
35+ ./build/ModLoader.dll
36+ ./build/ModLoader.lib
37+ ./build/DllProxy/version.dll
38+
3339 release :
3440 needs : build
3541 runs-on : ubuntu-latest
3844 run : |
3945 DATE_TAG="v$(date +'%Y%m%d.%H%M')"
4046 echo "TAG_NAME=$DATE_TAG" >> $GITHUB_ENV
41- echo "{tag}=$DATE_TAG"
47+ echo "tag=$DATE_TAG"
48+
4249 - name : Download Artifacts
4350 uses : actions/download-artifact@v4
51+
4452 - name : Create GitHub Release
4553 id : create_release
4654 uses : softprops/action-gh-release@v2
4957 body : " Automated release of ${{ github.ref_name }}."
5058 generate_release_notes : true
5159 token : ${{ secrets.RELEASE_CD_TOKEN }}
52-
53- - name : Upload ModLoader.dll
54- uses : actions/upload-release-asset@v1
55- env :
56- GITHUB_TOKEN : ${{ secrets.RELEASE_CD_TOKEN }}
57- with :
58- upload_url : ${{ steps.create_release.outputs.upload_url }}
59- asset_path : " ./fli-modloader/Release/ModLoader.dll"
60- asset_name : ModLoader.dll
61- asset_content_type : application/octet-stream
62-
63- - name : Upload version.dll
64- uses : actions/upload-release-asset@v1
65- env :
66- GITHUB_TOKEN : ${{ secrets.RELEASE_CD_TOKEN }}
67- with :
68- upload_url : ${{ steps.create_release.outputs.upload_url }}
69- asset_path : " ./fli-modloader/DllProxy/Release/version.dll"
70- asset_name : version.dll
71- asset_content_type : application/octet-stream
72-
73- - name : Upload ModLoader.lib
74- uses : actions/upload-release-asset@v1
75- env :
76- GITHUB_TOKEN : ${{ secrets.RELEASE_CD_TOKEN }}
77- with :
78- upload_url : ${{ steps.create_release.outputs.upload_url }}
79- asset_path : " ./fli-modloader/Release/ModLoader.lib"
80- asset_name : ModLoader.lib
81- asset_content_type : application/octet-stream
60+ files : |
61+ ./fli-modloader/ModLoader.dll
62+ ./fli-modloader/ModLoader.lib
63+ ./fli-modloader/DllProxy/version.dll
0 commit comments