Skip to content

Commit 9024fce

Browse files
committed
ci: automatic rename mod name
1 parent 0e00458 commit 9024fce

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
key: xmake-${{ hashFiles('xmake.lua') }}
3434
restore-keys: |
3535
xmake-
36-
36+
3737
- run: |
3838
xmake repo -u
3939
@@ -42,22 +42,11 @@ jobs:
4242
4343
- run: |
4444
xmake -y
45+
sed -i 's/\"name\": \"legacy-script-engine\"/\"name\": \"legacy-script-engine-${{ matrix.backend }}\"/g' bin/legacy-script-engine/manifest.json
46+
mv bin/legacy-script-engine bin/legacy-script-engine-${{ matrix.backend }}
4547
4648
- uses: actions/upload-artifact@v4
4749
with:
4850
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
4951
path: |
5052
bin/
51-
52-
# clang-format:
53-
# runs-on: windows-latest
54-
# steps:
55-
# - uses: actions/checkout@v4
56-
57-
# - run: |
58-
# choco install llvm -y
59-
60-
# - name: clang-format
61-
# run: |
62-
# Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
63-
# Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
key: xmake-${{ hashFiles('xmake.lua') }}
2626
restore-keys: |
2727
xmake-
28-
28+
2929
- run: |
3030
xmake repo -u
3131
@@ -34,6 +34,8 @@ jobs:
3434
3535
- run: |
3636
xmake -y
37+
sed -i 's/\"name\": \"legacy-script-engine\"/\"name\": \"legacy-script-engine-${{ matrix.backend }}\"/g' bin/legacy-script-engine/manifest.json
38+
mv bin/legacy-script-engine bin/legacy-script-engine-${{ matrix.backend }}
3739
3840
- uses: actions/upload-artifact@v4
3941
with:

0 commit comments

Comments
 (0)