Skip to content

Commit 85cd363

Browse files
authored
Update CI workflows (#76)
- Bump runner windows-2019 -> windows-2022 - Bump versions of all actions to latest - Pin ambuild to 25a23ac92307eb1e181fd3e7d9385412d4034532
1 parent f2af3f7 commit 85cd363

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/ci-extension.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
platform: [
2424
{ name: ubuntu-20.04, os: ubuntu-latest, containerImage: 'ubuntu:20.04', cc: clang-8, cxx: clang++-8, release: true },
2525
{ name: ubuntu-latest, os: ubuntu-latest, cc: clang, cxx: clang++, release: false },
26-
{ name: windows-2019, os: windows-2019, cc: msvc, release: true },
26+
{ name: windows-2022, os: windows-2022, cc: msvc, release: true },
2727
{ name: windows-latest, os: windows-latest, cc: msvc, release: false }
2828
]
2929
exclude: ${{ fromJson(needs.build-options.outputs.exclude) }}
@@ -56,36 +56,36 @@ jobs:
5656
build-essential \
5757
software-properties-common
5858
59-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v6
6060
name: Repository checkout
6161
with:
6262
fetch-depth: 0
6363
submodules: true
6464
path: CBaseNPC
6565

66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v6
6767
name: Sourcemod checkout
6868
with:
6969
repository: alliedmodders/sourcemod
7070
ref: ${{ env.SOURCEMOD_VERSION }}-dev
7171
submodules: true
7272
path: ${{ env.CACHE_PATH }}/sourcemod
7373

74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v6
7575
name: Metamod-Source checkout
7676
with:
7777
repository: alliedmodders/metamod-source
7878
ref: ${{ env.MMSOURCE_VERSION }}-dev
7979
path: ${{ env.CACHE_PATH }}/metamod
8080

81-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@v6
8282
name: AMBuild checkout
8383
with:
8484
repository: alliedmodders/ambuild
85-
ref: master
85+
ref: 25a23ac92307eb1e181fd3e7d9385412d4034532
8686
path: ${{ env.CACHE_PATH }}/ambuild
8787

88-
- uses: actions/checkout@v4
88+
- uses: actions/checkout@v6
8989
name: Checkout TF2 SDK
9090
with:
9191
repository: alliedmodders/hl2sdk
@@ -101,7 +101,7 @@ jobs:
101101
# ${{ runner.os }}-mms_${{ env.MMSOURCE_VERSION }}-sm_${{ env.SOURCEMOD_VERSION }}-${{ join(fromJSON(env.SDKS), '') }}
102102

103103
- name: Setup Python ${{ env.PYTHON_VERSION }}
104-
uses: actions/setup-python@v5
104+
uses: actions/setup-python@v6
105105
if: ${{ !(startsWith( runner.os, 'Linux' ) && env.IN_CONTAINER == 'true') }}
106106
with:
107107
python-version: ${{ env.PYTHON_VERSION }}
@@ -177,14 +177,14 @@ jobs:
177177
178178
- name: Upload artifact
179179
if: github.event_name == 'push' && matrix.platform.release
180-
uses: actions/upload-artifact@v4
180+
uses: actions/upload-artifact@v7
181181
with:
182182
name: cbasenpc_${{ runner.os }}
183183
path: CBaseNPC/build/package
184184

185185
- name: Upload artifact
186186
if: github.event_name == 'push' && strategy.job-index == 0
187-
uses: actions/upload-artifact@v4
187+
uses: actions/upload-artifact@v7
188188
with:
189189
name: cbasenpc_versioning_files
190190
path: CBaseNPC/build/includes

.github/workflows/ci-scripting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
runs-on: ubuntu-latest
2929

3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v6
3232

33-
- uses: actions/setup-python@v5
33+
- uses: actions/setup-python@v6
3434
name: Setup Python 3.8
3535
with:
3636
python-version: '3.8'
3737

3838
- name: Install AMBuild
3939
run: |
4040
python -m pip install --upgrade pip setuptools wheel
41-
pip install git+https://github.com/alliedmodders/ambuild
41+
pip install git+https://github.com/alliedmodders/ambuild@25a23ac92307eb1e181fd3e7d9385412d4034532
4242
4343
- name: Setup SP
4444
uses: rumblefrog/setup-sp@master

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ jobs:
2121
- run: sudo apt-get install -y tree
2222

2323
- name: Download Linux release
24-
uses: actions/download-artifact@v4
24+
uses: actions/download-artifact@v8
2525
with:
2626
name: cbasenpc_Linux
2727
path: cbasenpc_linux
2828

2929
- name: Download Windows release
30-
uses: actions/download-artifact@v4
30+
uses: actions/download-artifact@v8
3131
with:
3232
name: cbasenpc_Windows
3333
path: cbasenpc_windows
3434

3535
- name: Download Plugins
36-
uses: actions/download-artifact@v4
36+
uses: actions/download-artifact@v8
3737
with:
3838
name: cbasenpc_plugins
3939
path: cbasenpc_plugins
4040

4141
- name: Download CBaseNPC verisioning files
42-
uses: actions/download-artifact@v4
42+
uses: actions/download-artifact@v8
4343
with:
4444
name: cbasenpc_versioning_files
4545
path: cbasenpc_versioning_files

0 commit comments

Comments
 (0)