Skip to content

Commit

Permalink
chore: Update CI actions to use versions for Node 20 (#3771)
Browse files Browse the repository at this point in the history
* Update CI actions to use versions for Node 20 (previous versions are deprecated)
* Reduce page file assigned to Windows images to 12GB - Windows runners have 14GB of storage
* Windows, try al-cheb/configure-pagefile-action workaround for errors
  • Loading branch information
WojciechMazur committed Feb 16, 2024
1 parent 0493ae2 commit c5b6458
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/actions/linux-setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{inputs.java-version}}
Expand All @@ -33,7 +33,7 @@ runs:
fi
- name: Install dependencies
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 10
Expand All @@ -53,7 +53,7 @@ runs:
# Loads cache with dependencies created in test-tools job
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/coursier
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/macos-setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{inputs.java-version}}
Expand Down Expand Up @@ -51,7 +51,7 @@ runs:
# Loads cache with dependencies created in test-tools job
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/coursier
Expand Down
9 changes: 5 additions & 4 deletions .github/actions/windows-setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ outputs:
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{inputs.java-version}}
Expand All @@ -30,10 +30,11 @@ runs:
# it does not matter whether it would be used or not, the amount of all
# reserved memory cannot exceed the amount of physically available storage.
- name: Configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.3
uses: al-cheb/configure-pagefile-action@v1.4
with:
minimum-size: 4GB
maximum-size: 16GB
maximum-size: 12GB
disk-root: "C:"

#Prepare environment, clang needs to be installed
#Compilation on MSVC needs c++14 or higher and expects llvm 11.0.0 or newer
Expand All @@ -56,7 +57,7 @@ runs:
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{steps.resolve-env.outputs.ProgramFiles}}\LLVM\
Expand Down

0 comments on commit c5b6458

Please sign in to comment.