Bump actions to v4

This commit is contained in:
Alexander Batalov 2024-03-03 11:27:37 +03:00
parent 95cbba3920
commit 31afb4d568
1 changed files with 17 additions and 17 deletions

View File

@ -26,7 +26,7 @@ jobs:
sudo apt install cppcheck sudo apt install cppcheck
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: cppcheck - name: cppcheck
run: cppcheck --std=c++17 src/ run: cppcheck --std=c++17 src/
@ -38,7 +38,7 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: clang-format - name: clang-format
run: find src -type f -name \*.cc -o -name \*.h | xargs clang-format --dry-run --Werror run: find src -type f -name \*.cc -o -name \*.h | xargs clang-format --dry-run --Werror
@ -50,7 +50,7 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v3 uses: actions/setup-java@v3
@ -60,7 +60,7 @@ jobs:
cache: gradle cache: gradle
- name: Cache cmake build - name: Cache cmake build
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: os/android/app/.cxx path: os/android/app/.cxx
key: android-cmake-v1 key: android-cmake-v1
@ -81,7 +81,7 @@ jobs:
./gradlew assembleDebug ./gradlew assembleDebug
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: fallout2-ce-debug.apk name: fallout2-ce-debug.apk
path: os/android/app/build/outputs/apk/debug/app-debug.apk path: os/android/app/build/outputs/apk/debug/app-debug.apk
@ -94,10 +94,10 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Cache cmake build - name: Cache cmake build
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build path: build
key: ios-cmake-v2 key: ios-cmake-v2
@ -127,7 +127,7 @@ jobs:
cpack -C RelWithDebInfo cpack -C RelWithDebInfo
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: fallout2-ce.ipa name: fallout2-ce.ipa
path: build/fallout2-ce.ipa path: build/fallout2-ce.ipa
@ -147,7 +147,7 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Dependencies (x86) - name: Dependencies (x86)
if: matrix.arch == 'x86' if: matrix.arch == 'x86'
@ -164,7 +164,7 @@ jobs:
sudo apt install libsdl2-dev zlib1g-dev sudo apt install libsdl2-dev zlib1g-dev
- name: Cache cmake build - name: Cache cmake build
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build path: build
key: linux-${{ matrix.arch }}-cmake-v1 key: linux-${{ matrix.arch }}-cmake-v1
@ -194,7 +194,7 @@ jobs:
# EOL # EOL
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: fallout2-ce-linux-${{ matrix.arch }} name: fallout2-ce-linux-${{ matrix.arch }}
path: build/fallout2-ce path: build/fallout2-ce
@ -207,10 +207,10 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Cache cmake build - name: Cache cmake build
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build path: build
key: macos-cmake-v4 key: macos-cmake-v4
@ -237,7 +237,7 @@ jobs:
cpack -C RelWithDebInfo cpack -C RelWithDebInfo
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: fallout2-ce-macos.dmg name: fallout2-ce-macos.dmg
path: build/Fallout II Community Edition.dmg path: build/Fallout II Community Edition.dmg
@ -259,10 +259,10 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Cache cmake build - name: Cache cmake build
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: build path: build
key: windows-${{ matrix.arch }}-cmake-v1 key: windows-${{ matrix.arch }}-cmake-v1
@ -283,7 +283,7 @@ jobs:
# EOL # EOL
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: fallout2-ce-windows-${{ matrix.arch }} name: fallout2-ce-windows-${{ matrix.arch }}
path: build/RelWithDebInfo/fallout2-ce.exe path: build/RelWithDebInfo/fallout2-ce.exe