Skip to content

Commit

Permalink
Update deprecated Github actions that were using Node 16.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Feb 10, 2024
1 parent ca32e9a commit 2fa6cd0
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 52 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/extension_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ jobs:
- name: master Editor
target: editor
dev_build: no
#cache_action: actions/cache@v3
executable_name: libvoxel.windows.editor.x86_64.dll

- name: master Release
target: template_release
dev_build: no
#cache_action: actions/cache@v3
executable_name: libvoxel.windows.template_release.x86_64.dll

steps:
# Clone our repo
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Clone GodotCpp
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot-cpp
ref: master
Expand All @@ -51,7 +49,7 @@ jobs:
- name: Load .scons_cache directory
id: windows-editor-cache
#uses: ${{matrix.cache_action}}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /.scons_cache/
key: ${{github.job}}-${{matrix.target}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -62,7 +60,7 @@ jobs:
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
Expand All @@ -88,7 +86,7 @@ jobs:
dir
# Make build available
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
#if: ${{ matrix.target == 'Editor' }}
with:
name: ${{matrix.executable_name}}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/fuzzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:

steps:
# Clone Godot
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot
ref: ${{ env.GODOT_BASE_BRANCH }}

# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

Expand All @@ -46,7 +46,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: fuzzer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -68,7 +68,7 @@ jobs:
scons target=editor use_ubsan=yes use_asan=yes linker=gold dev_build=yes CCFLAGS="-fpie" LINKFLAGS="-no-pie"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: godot-linux
path: |
Expand All @@ -83,7 +83,7 @@ jobs:

# Download binaries from
- name: Download Executed project
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: godot-linux
path: bin
Expand All @@ -94,13 +94,13 @@ jobs:
chmod +x bin/godot.linuxbsd.editor.dev.x86_64.san
# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

# Clone fuzzer
- name: Checkout Godot fuzzer backend
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: qarmin/Qarminer
ref: ${{ env.GODOT_BASE_BRANCH }}
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
fi
- name: Store reproducer Headless
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reproducer_4_headless
path: crash_reproduce.gd
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
fi
- name: Store reproducer Headless
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reproducer_4_gles3
path: crash_reproduce.gd
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
fi
- name: Store reproducer Vulkan
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reproducer_4_vulkan
path: crash_reproduce.gd
Expand All @@ -244,13 +244,13 @@ jobs:
- name: Store project results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: project-results
path: project_results.txt

- name: Store last run functions
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: last-run-functions
path: results_connected.txt
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ jobs:

steps:
# Clone Godot
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot
ref: ${{ matrix.godot_base_branch }}

# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: linux-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.executable_name}}-${{matrix.godot_base_branch}}-${{github.ref}}-${{github.sha}}
Expand All @@ -145,7 +145,7 @@ jobs:
# [Already provided by the custom buildroot]
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
# - name: Set up Python 3.x
# uses: actions/setup-python@v4
# uses: actions/setup-python@v5
# with:
# # Semantic version range syntax or exact version of a Python version
# python-version: '3.x'
Expand All @@ -170,7 +170,7 @@ jobs:
scons verbose=yes warnings=${{matrix.warnings}} werror=yes platform=linuxbsd tests=no dev_build=${{matrix.dev_build}} dev_mode=yes target=${{matrix.target}} production=${{matrix.production}} precision=${{matrix.precision}}
# Make build available
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ matrix.dev_build != 'yes' }}
with:
name: ${{matrix.executable_name}}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:

steps:
# Clone Godot
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot
ref: ${{ env.GODOT_BASE_BRANCH }}

# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

Expand All @@ -45,7 +45,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: mono-glue-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -56,7 +56,7 @@ jobs:
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
# xvfb-run ./bin/godot.linuxbsd.editor.x86_64.mono --headless --generate-mono-glue modules/mono/glue || true

# Make glue available as artifact for dependent jobs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: mono-glue
path: |
Expand All @@ -100,13 +100,13 @@ jobs:

steps:
# Clone Godot
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot
ref: ${{ env.GODOT_BASE_BRANCH }}

# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

Expand All @@ -127,7 +127,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: linux-editor-mono-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -138,7 +138,7 @@ jobs:
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
Expand All @@ -155,7 +155,7 @@ jobs:
# Download glue from the mono-glue job
- name: Download Glue
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mono-glue
path: modules/mono/glue
Expand All @@ -172,7 +172,7 @@ jobs:
scons verbose=yes warnings=all werror=yes platform=linuxbsd tests=no target=editor dev_build=no debug_symbols=no module_mono_enabled=yes mono_glue=yes mono_static=yes copy_mono_root=yes
# Make build available
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: godot.linuxbsd.editor.x86_64.mono
path: bin/*
Expand All @@ -185,13 +185,13 @@ jobs:

steps:
# Clone Godot
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: godotengine/godot
ref: ${{ env.GODOT_BASE_BRANCH }}

# Clone our module under the correct directory
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: modules/voxel

Expand All @@ -203,7 +203,7 @@ jobs:
# Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache.
- name: Load .scons_cache directory
id: windows-editor-mono-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -214,7 +214,7 @@ jobs:
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
Expand All @@ -231,7 +231,7 @@ jobs:
# Download glue from the mono-glue job
- name: Download Glue
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mono-glue
path: modules/mono/glue
Expand All @@ -255,7 +255,7 @@ jobs:
# ./bin/godot.windows.editor.x86_64.mono.exe --test

# Make build available
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: godot.windows.editor.x86_64.mono
path: bin/*
Loading

0 comments on commit 2fa6cd0

Please sign in to comment.