Skip to content

Commit

Permalink
Update actions to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKay committed Sep 16, 2023
1 parent a42d40a commit f921ecd
Showing 1 changed file with 6 additions and 57 deletions.
63 changes: 6 additions & 57 deletions .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
runs-on: "windows-latest"

# Windows Editor - checkout with the plugin
name: Editor (target=release_debug, tools=yes)
name: Editor (target=release, tools=yes)

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Upload cache on completion and check it out now
# 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-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Expand All @@ -36,7 +36,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@v2
uses: actions/setup-python@v3
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
Expand All @@ -60,58 +60,7 @@ jobs:
ls -l bin/
- name: Upload artifact windows-editor
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}
path: bin/*
retention-days: 14

windows-template:
runs-on: "windows-latest"
name: Template (target=release, tools=no)

steps:
- uses: actions/checkout@v2

# Upload cache on completion and check it out now
# 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-template-cache
uses: RevoluPowered/cache@v2.1
with:
path: /.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.GODOT_BASE_BRANCH}}
continue-on-error: true

# Use python 3.x release (works cross platform)
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'

# You can test your matrix by printing the current Python version
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
pip install scons==3.1.2
python --version
scons --version
- name: Compilation
env:
SCONS_CACHE: /.scons_cache/
run: |
scons target=release tools=no
ls -l bin/
- uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}
path: bin/*
path: bin/*

0 comments on commit f921ecd

Please sign in to comment.