From 746991475bfa21d291405c87d34a7c453dd9ac33 Mon Sep 17 00:00:00 2001 From: KitRifty Date: Fri, 22 May 2026 20:12:26 -0700 Subject: [PATCH] Update CI workflows - Bump runner windows-2019 -> windows-2022 - Bump versions of all actions to latest - Pin ambuild to 25a23ac92307eb1e181fd3e7d9385412d4034532 - Issue with Windows on a later commit, so pinning it to the commit that was last successful at last run date --- .github/workflows/ci-extension.yml | 20 ++++++++++---------- .github/workflows/ci-scripting.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-extension.yml b/.github/workflows/ci-extension.yml index 52ff3dc..56f498b 100644 --- a/.github/workflows/ci-extension.yml +++ b/.github/workflows/ci-extension.yml @@ -23,7 +23,7 @@ jobs: platform: [ { name: ubuntu-20.04, os: ubuntu-latest, containerImage: 'ubuntu:20.04', cc: clang-8, cxx: clang++-8, release: true }, { name: ubuntu-latest, os: ubuntu-latest, cc: clang, cxx: clang++, release: false }, - { name: windows-2019, os: windows-2019, cc: msvc, release: true }, + { name: windows-2022, os: windows-2022, cc: msvc, release: true }, { name: windows-latest, os: windows-latest, cc: msvc, release: false } ] exclude: ${{ fromJson(needs.build-options.outputs.exclude) }} @@ -56,14 +56,14 @@ jobs: build-essential \ software-properties-common - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 name: Repository checkout with: fetch-depth: 0 submodules: true path: CBaseNPC - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 name: Sourcemod checkout with: repository: alliedmodders/sourcemod @@ -71,21 +71,21 @@ jobs: submodules: true path: ${{ env.CACHE_PATH }}/sourcemod - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 name: Metamod-Source checkout with: repository: alliedmodders/metamod-source ref: ${{ env.MMSOURCE_VERSION }}-dev path: ${{ env.CACHE_PATH }}/metamod - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 name: AMBuild checkout with: repository: alliedmodders/ambuild - ref: master + ref: 25a23ac92307eb1e181fd3e7d9385412d4034532 path: ${{ env.CACHE_PATH }}/ambuild - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 name: Checkout TF2 SDK with: repository: alliedmodders/hl2sdk @@ -101,7 +101,7 @@ jobs: # ${{ runner.os }}-mms_${{ env.MMSOURCE_VERSION }}-sm_${{ env.SOURCEMOD_VERSION }}-${{ join(fromJSON(env.SDKS), '') }} - name: Setup Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 if: ${{ !(startsWith( runner.os, 'Linux' ) && env.IN_CONTAINER == 'true') }} with: python-version: ${{ env.PYTHON_VERSION }} @@ -177,14 +177,14 @@ jobs: - name: Upload artifact if: github.event_name == 'push' && matrix.platform.release - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cbasenpc_${{ runner.os }} path: CBaseNPC/build/package - name: Upload artifact if: github.event_name == 'push' && strategy.job-index == 0 - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cbasenpc_versioning_files path: CBaseNPC/build/includes diff --git a/.github/workflows/ci-scripting.yml b/.github/workflows/ci-scripting.yml index b445613..1555567 100644 --- a/.github/workflows/ci-scripting.yml +++ b/.github/workflows/ci-scripting.yml @@ -28,9 +28,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 name: Setup Python 3.8 with: python-version: '3.8' @@ -38,7 +38,7 @@ jobs: - name: Install AMBuild run: | python -m pip install --upgrade pip setuptools wheel - pip install git+https://github.com/alliedmodders/ambuild + pip install git+https://github.com/alliedmodders/ambuild@25a23ac92307eb1e181fd3e7d9385412d4034532 - name: Setup SP uses: rumblefrog/setup-sp@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 244578f..5ecd075 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,25 +21,25 @@ jobs: - run: sudo apt-get install -y tree - name: Download Linux release - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: cbasenpc_Linux path: cbasenpc_linux - name: Download Windows release - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: cbasenpc_Windows path: cbasenpc_windows - name: Download Plugins - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: cbasenpc_plugins path: cbasenpc_plugins - name: Download CBaseNPC verisioning files - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: cbasenpc_versioning_files path: cbasenpc_versioning_files