commit 3ce50352e5610bbaa9eeff4cc73b1ddcabd6a1e4
Author: Roman Fomin <rfomin@gmail.com>
AuthorDate: Fri Feb 2 09:50:58 2024 +0700
Commit: GitHub <noreply@github.com>
CommitDate: Fri Feb 2 03:50:58 2024 +0100
Update workflow actions versions to fix GitHub warnings (#1664)
* Update actions/upload-artifact version to fix GitHub warnings
* Update actions/checkout version, don't install libsdl2-image-dev
---
.github/workflows/cpp-linter.yml | 4 ++--
.github/workflows/cppcheck.yml | 2 +-
.github/workflows/main.yml | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml
index 3ab6e8ee..9c5e5d77 100644
--- a/.github/workflows/cpp-linter.yml
+++ b/.github/workflows/cpp-linter.yml
@@ -16,9 +16,9 @@ jobs:
compiler: [clang]
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install dependencies
- run: sudo apt-get update && sudo apt-get install libfluidsynth-dev libpng-dev libsamplerate0-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev ninja-build
+ run: sudo apt-get update && sudo apt-get install libfluidsynth-dev libpng-dev libsamplerate0-dev libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev ninja-build
- name: Run cmake to generate compilation database
run: cmake -S . -B . -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- uses: cpp-linter/cpp-linter-action@v2
diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml
index 737fd2bc..b7803111 100644
--- a/.github/workflows/cppcheck.yml
+++ b/.github/workflows/cppcheck.yml
@@ -15,7 +15,7 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install cppcheck
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- name: Run cppcheck
env:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b17b90eb..2d309a5c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -134,7 +134,7 @@ jobs:
- name: Upload artifacts
if: ${{ matrix.config.artifacts }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.name }}
path: ${{ matrix.config.pkg-path }}