Skip to content

Commit d6e3a51

Browse files
committed
TEST
1 parent 140afc2 commit d6e3a51

File tree

2 files changed

+50
-36
lines changed

2 files changed

+50
-36
lines changed

.github/workflows/build-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Build Check"
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
BUILD_TYPE: Release
13+
14+
jobs:
15+
build-check:
16+
runs-on: windows-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install LLVM and Clang
21+
uses: KyleMayes/install-llvm-action@v2
22+
with:
23+
version: "21.1.3"
24+
25+
- name: Pull submodule
26+
run: git submodule update --init
27+
28+
- name: Configure CMake with Clang-CL
29+
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
30+
31+
- name: Build project
32+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

.github/workflows/cd.yml

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -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}}
@@ -27,9 +32,10 @@ jobs:
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
@@ -38,9 +44,11 @@ jobs:
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
@@ -49,33 +57,7 @@ jobs:
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

Comments
 (0)