diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 2cd8633178..04280ab8e3 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -7,6 +7,7 @@ on: - v* paths: + - .github/workflows/build-ubuntu.yml - cmake/** - src/** - CMakeLists.txt @@ -14,6 +15,7 @@ on: pull_request: paths: + - .github/workflows/build-ubuntu.yml - cmake/** - src/** - CMakeLists.txt @@ -36,10 +38,10 @@ jobs: luajit: [on, off] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: cpp # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs @@ -65,13 +67,13 @@ jobs: configurePreset: default - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:cpp" if: ${{ matrix.buildtype }} == "Debug" - name: Upload artifact binary - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ubuntu-tfs-amd64-${{ github.sha }} + name: tfs-ubuntu-${{ matrix.buildtype }}-luajit=on-${{ github.sha }} path: ${{ runner.workspace }}/build/tfs diff --git a/.github/workflows/build-vcpkg.yml b/.github/workflows/build-vcpkg.yml index 13e4470dfb..c4bfa70c00 100644 --- a/.github/workflows/build-vcpkg.yml +++ b/.github/workflows/build-vcpkg.yml @@ -7,6 +7,7 @@ on: - v* paths: + - .github/workflows/build-vcpkg.yml - cmake/** - src/** - CMakeLists.txt @@ -15,6 +16,7 @@ on: pull_request: paths: + - .github/workflows/build-vcpkg.yml - cmake/** - src/** - CMakeLists.txt @@ -35,7 +37,7 @@ jobs: VCPKG_BUILD_TYPE: release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get latest CMake # Using 'latest' branch, the latest CMake is installed. @@ -56,17 +58,17 @@ jobs: configurePreset: vcpkg - name: Upload artifact binary - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ !startsWith(matrix.os, 'windows') }} with: - name: tfs-${{ matrix.name }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} + name: tfs-${{ matrix.os }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} path: ${{ runner.workspace }}/build/tfs - name: Upload artifact binary (exe) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ startsWith(matrix.os, 'windows') }} with: - name: tfs-${{ matrix.name }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} + name: tfs-${{ matrix.os }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} path: | ${{ runner.workspace }}/build/tfs.exe ${{ runner.workspace }}/build/*.dll @@ -76,7 +78,7 @@ jobs: shell: bash - name: Upload datapack contents - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: tfs-${{ matrix.name }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} + name: tfs-${{ matrix.os }}-${{ matrix.buildtype }}-luajit=${{ matrix.luajit }}-${{ github.sha }} path: ${{ github.workspace }} diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 7ab56d1cb4..15d3ecad2a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup LLVM repository run: | diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 36914cb69b..fcb92fc3a8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: if: github.event_name == 'push' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build image run: docker build . --file Dockerfile --tag image diff --git a/.github/workflows/lua-check.yml b/.github/workflows/lua-check.yml index ccfb507d99..981dc56b14 100644 --- a/.github/workflows/lua-check.yml +++ b/.github/workflows/lua-check.yml @@ -21,7 +21,7 @@ jobs: luac: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: leafo/gh-actions-lua@v10 with: @@ -33,7 +33,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: leafo/gh-actions-lua@v10 - uses: leafo/gh-actions-luarocks@v4 @@ -46,7 +46,7 @@ jobs: format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: leafo/gh-actions-lua@v10 - uses: leafo/gh-actions-luarocks@v4 diff --git a/.github/workflows/release-vcpkg.yml b/.github/workflows/release-vcpkg.yml index 6fdde8ec8c..54a796bfdb 100644 --- a/.github/workflows/release-vcpkg.yml +++ b/.github/workflows/release-vcpkg.yml @@ -18,7 +18,7 @@ jobs: VCPKG_FEATURE_FLAGS: luajit steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get latest CMake # Using 'latest' branch, the latest CMake is installed. @@ -43,7 +43,7 @@ jobs: shell: bash - name: Zip the release files - uses: thedoctor0/zip-release@master + uses: thedoctor0/zip-release@0.7.6 with: type: zip filename: tfs-${{ github.ref_name }}-${{ matrix.os }}.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c6423b610..2d8d62d8ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get latest CMake # Using 'latest' branch, the latest CMake is installed. diff --git a/.github/workflows/xml-syntax.yml b/.github/workflows/xml-syntax.yml index 66cc112888..22c2350b27 100644 --- a/.github/workflows/xml-syntax.yml +++ b/.github/workflows/xml-syntax.yml @@ -14,7 +14,7 @@ jobs: xmllint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install xmllint run: sudo apt update -q && sudo apt install -yq libxml2-utils