forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}} | ||
|
@@ -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' | ||
|
@@ -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/[email protected] | ||
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/* |