Skip to content

Commit aec2ff5

Browse files
authored
手动执行,输出产物
1 parent 978a3fb commit aec2ff5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- master
1010
- '[0-9]+.[0-9]+-dev'
11+
workflow_dispatch:
1112
jobs:
1213
test:
1314
strategy:
@@ -51,7 +52,6 @@ jobs:
5152
restore-keys: |
5253
${{ runner.os }}-build-${{ env.cache-name }}-mysql${{ env.MYSQL_VERSION }}-mmsource${{ env.MMSOURCE_VERSION }}-
5354
${{ runner.os }}-build-${{ env.cache-name }}-mysql${{ env.MYSQL_VERSION }}-
54-
5555
# Setup Python for AMBuild
5656
- uses: actions/setup-python@v5
5757
name: Setup Python 3.8
@@ -60,17 +60,14 @@ jobs:
6060
- name: Install Python dependencies
6161
run: |
6262
python -m pip install --upgrade pip setuptools wheel
63-
6463
- name: Install dependencies
6564
shell: bash
6665
run: |
6766
mkdir -p ${{ env.DEPENDENCIES_FOLDER }}
6867
cd ${{ env.DEPENDENCIES_FOLDER }}
69-
7068
# Satisfy checkout-deps requirement for a "sourcemod" folder.
7169
mkdir -p sourcemod
7270
../sourcemod/tools/checkout-deps.sh -s ${{ join(fromJSON(env.SDKS)) }} -d
73-
7471
- name: Install Linux dependencies
7572
if: startsWith(runner.os, 'Linux')
7673
run: |
@@ -80,19 +77,22 @@ jobs:
8077
gcc-multilib g++-multilib libstdc++6 lib32stdc++6 \
8178
libc6-dev libc6-dev-i386 linux-libc-dev \
8279
linux-libc-dev:i386 lib32z1-dev ${{ matrix.compiler_cc }}
83-
8480
- name: Select clang compiler
8581
if: startsWith(runner.os, 'Linux')
8682
run: |
8783
echo "CC=${{ matrix.compiler_cc }}" >> $GITHUB_ENV
8884
echo "CXX=${{ matrix.compiler_cxx }}" >> $GITHUB_ENV
8985
${{ matrix.compiler_cc }} --version
9086
${{ matrix.compiler_cxx }} --version
91-
9287
- name: Build
9388
working-directory: sourcemod
9489
run: |
9590
mkdir build
9691
cd build
9792
python ../configure.py --enable-optimize --sdks=${{ join(fromJSON(env.SDKS)) }} --targets=${{ env.ARCH }} --mms-path=${{ env.DEPENDENCIES_ROOT }}/mmsource-${{ env.MMSOURCE_VERSION }} --hl2sdk-root=${{ env.DEPENDENCIES_ROOT }} --mysql-path=${{ env.DEPENDENCIES_ROOT }}/mysql-${{ env.MYSQL_VERSION }} --mysql64-path=${{ env.DEPENDENCIES_ROOT }}/mysql-${{ env.MYSQL_VERSION }}-x86_64
9893
ambuild
94+
- name: Archive Build
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: sourcemod-${{ env.SM_VERSION }}-${{ matrix.os }}-${{ matrix.compiler_cc }}
98+
path: ./sourcemod/build

0 commit comments

Comments
 (0)