add scons cache test
This commit is contained in:
@ -19,9 +19,16 @@ jobs:
|
||||
image: registry.forge.northernlighthouseinteractive.com/northern-lighthouse/godot-builder-windows:a162ed2
|
||||
options: "--dns 8.8.8.8"
|
||||
volumes:
|
||||
- scons-cache-vol:/root/.scons_cache
|
||||
- /mnt/wsl_scons_cache:/scons_cache:z
|
||||
|
||||
steps:
|
||||
- name: Verify Cache Directory
|
||||
run: |
|
||||
echo "Testing cache directory permissions..."
|
||||
# This will fail the job immediately if the runner can't write to the mount
|
||||
touch /scons_cache/test_write.txt
|
||||
ls -la /scons_cache
|
||||
|
||||
- name: Checkout Source
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@ -38,16 +45,22 @@ jobs:
|
||||
continue-on-error: true
|
||||
|
||||
- name: Compile Editor
|
||||
env:
|
||||
SCONS_CACHE: /scons_cache
|
||||
SCONS_CACHE_LIMIT: 8192
|
||||
run: |
|
||||
echo "Compiling Windows Editor..."
|
||||
# production=yes handles the optimization flags automatically
|
||||
scons platform=windows target=editor precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=windows target=editor precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scu_build=yes
|
||||
|
||||
- name: Compile Templates
|
||||
env:
|
||||
SCONS_CACHE: /scons_cache
|
||||
SCONS_CACHE_LIMIT: 8192
|
||||
run: |
|
||||
echo "Compiling Windows Templates..."
|
||||
scons platform=windows target=template_release precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=windows target=template_debug precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=windows target=template_release precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scu_build=yes
|
||||
scons platform=windows target=template_debug precision=double production=yes arch=x86_64 use_mingw=yes d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} scu_build=yes
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -66,22 +79,28 @@ jobs:
|
||||
container:
|
||||
image: registry.forge.northernlighthouseinteractive.com/northern-lighthouse/godot-builder-linux:a162ed2
|
||||
volumes:
|
||||
- scons-cache-vol:/root/.scons_cache
|
||||
- /mnt/wsl_scons_cache:/scons_cache:z
|
||||
|
||||
steps:
|
||||
- name: Checkout Source
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Compile Editor
|
||||
env:
|
||||
SCONS_CACHE: /scons_cache
|
||||
SCONS_CACHE_LIMIT: 8192
|
||||
run: |
|
||||
echo "Compiling Linux Editor..."
|
||||
scons platform=linux target=editor precision=double production=yes arch=x86_64 scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=linux target=editor precision=double production=yes arch=x86_64 scu_build=yes
|
||||
|
||||
- name: Compile Templates
|
||||
env:
|
||||
SCONS_CACHE: /scons_cache
|
||||
SCONS_CACHE_LIMIT: 8192
|
||||
run: |
|
||||
echo "Compiling Linux Templates..."
|
||||
scons platform=linux target=template_release precision=double production=yes arch=x86_64 scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=linux target=template_debug precision=double production=yes arch=x86_64 scons_cache=/root/.scons_cache scons_cache_limit=8192 scu_build=yes
|
||||
scons platform=linux target=template_release precision=double production=yes arch=x86_64 scu_build=yes
|
||||
scons platform=linux target=template_debug precision=double production=yes arch=x86_64 scu_build=yes
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user