Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to node.js v20 actions based on deprecation warning #2204

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build_type: RelWithDebInfo
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GCC
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
needs: clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GCC
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
build/Windows-x86_64/Freeciv21-*-Windows-x86_64.exe
build/Windows-x86_64/Freeciv21-*-Windows-x86_64.exe.sha256
- name: Upload a build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Windows-exe
path: build/Windows-x86_64/Freeciv21-*.exe
Expand All @@ -191,10 +191,10 @@ jobs:
VCPKG_ROOT: C:/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}/vcpkg/bincache
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: lukka/run-vcpkg@v10
- uses: lukka/run-vcpkg@v11
name: Install dependencies
with:
vcpkgGitCommitId: 53bef8994c541b6561884a8395ea35715ece75db
Expand All @@ -217,7 +217,7 @@ jobs:
env:
VCPKG_BUILD_TYPE: release
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build tools
Expand All @@ -229,10 +229,10 @@ jobs:
gettext \
create-dmg
brew link gettext --force
- uses: actions/setup-python@v4 # Workaround for #2069
- uses: actions/setup-python@v5 # Workaround for #2069
with:
python-version: '3.11'
- uses: lukka/run-vcpkg@v10
- uses: lukka/run-vcpkg@v11
name: Install dependencies
with:
vcpkgGitCommitId: 53bef8994c541b6561884a8395ea35715ece75db
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
Freeciv21-*.dmg
Freeciv21-*.dmg.sha256
- name: Upload a build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macOS-dmg
path: Freeciv21-*.dmg
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
zlib-devel \
libunwind-devel \
elfutils-libs
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Configure
# Set ALWAYS_ROOT because the container user is root and creating an
# unpriviledged user would be too much work.
Expand Down Expand Up @@ -388,8 +388,8 @@ jobs:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
steps:
- name: checkout
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- run: nix flake check
# TODO: We can add the build to a cache for others (see cachix.org)
# It's free for FOSS.
Expand All @@ -403,10 +403,10 @@ jobs:
env:
QT_VERSION: v5.15.8-lts-lgpl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache Qt build
id: qtcache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/qt
key: qt-wasm-${{ env.QT_VERSION }}-svg-socket-v2
Expand All @@ -419,7 +419,7 @@ jobs:
clang \
python3 \
gettext
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout emsdk
with:
repository: emscripten-core/emsdk
Expand All @@ -442,7 +442,7 @@ jobs:
cd lua-5.4.3
emcmake cmake .
emmake make install
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.qtcache.outputs.cache-hit != 'true'
name: Checkout qtbase
with:
Expand All @@ -460,7 +460,7 @@ jobs:
git cherry-pick 76d12eea2252c5e537dff15b103bdc1f925cf760
./configure -xplatform wasm-emscripten -opensource -confirm-license -prefix ~/qt -nomake examples
make install
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.qtcache.outputs.cache-hit != 'true'
name: Checkout qtsvg
with:
Expand All @@ -474,7 +474,7 @@ jobs:
cd qtsvg
~/qt/bin/qmake
make install
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout zstd
with:
repository: facebook/zstd
Expand All @@ -487,7 +487,7 @@ jobs:
mkdir bld
emcmake cmake build/cmake -DZSTD_BUILD_PROGRAMS=0 -DZSTD_BUILD_SHARED=0
emmake make install
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout extra-cmake-modules
with:
repository: KDE/extra-cmake-modules
Expand All @@ -498,7 +498,7 @@ jobs:
cd ecm
cmake .
sudo make install
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout karchive
with:
repository: KDE/karchive
Expand Down Expand Up @@ -543,13 +543,13 @@ jobs:
run: |
cat common/networking/CMakeFiles/networking.dir/includes_CXX.rsp
cat CMakeCache.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cmakecache
path: CMakeCache.txt
- name: Archive production artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wasm-client
path: freeciv21-client.*
Expand All @@ -558,7 +558,7 @@ jobs:
name: clang-format Code Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run clang-format style check for C/C++
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- # Make sure there are no unstaged changes
Expand All @@ -30,7 +30,7 @@ jobs:
echo Target branch is $branch
echo branch=$branch >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.0.4
uses: peter-evans/create-pull-request@v6
with:
base: ${{ steps.branch.outputs.branch }}
commit-message: "Release update of AutoRevision.txt"
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-22.04
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git rev-parse --short=5 HEAD > cmake/AutoRevision.txt
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
shell: msys2 {0}
if: github.event_name == 'release' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
Expand Down
Loading