Skip to content

Test PR: CI caching #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions .github/workflows/nfe-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:
branches: [ devel ]

# TODO LIST:
# * Add caching via actions/cache: https://github.com/actions/cache
# With that, cache Deps build output to speed up the process
# * Fix CommonTests and restore them below per each platform
# * Test item on the list
jobs:
linux-build:
name: Linux Build
Expand Down Expand Up @@ -36,7 +35,14 @@ jobs:
run: sudo apt install libxcb1-dev libxcb1 libxcb-image0-dev libxcb-image0
- name: Update glslang sources
run: cd Deps/glslang && ./update_glslang_sources.py && cd ../..
- name: Configure
- name: Cache build dir
id: cache-build-linux
uses: actions/cache@v3
with:
path: build
key: build-linux-cmake-cache
- if: ${{ steps.cache-build-linux.outputs.cache-hit != 'true' }}
name: Configure
run: |
mkdir -p build
cd build
Expand Down Expand Up @@ -69,12 +75,20 @@ jobs:
uses: humbletim/[email protected]
with:
cache: true
- name: Update glslang sources
- name: Cache Deps
id: cache-deps-windows-vs
uses: actions/cache@v3
with:
path: Deps
key: deps-windows-vs-cache
- if: ${{ steps.cache-deps-windows-vs.outputs.cache-hit != 'true' }}
name: Update glslang sources
run: |
cd Deps\glslang
python update_glslang_sources.py
cd ..\..
- name: Build Deps
- if: ${{ steps.cache-deps-windows-vs.outputs.cache-hit != 'true' }}
name: Build Deps
run: python Deps\deps_builder.py --noanim
- name: Build
run: msbuild Engine.sln /property:Configuration=${{matrix.configs}}
Expand Down Expand Up @@ -110,7 +124,14 @@ jobs:
cd Deps\glslang
python update_glslang_sources.py
cd ..\..
- name: Configure
- name: Cache build dir
id: cache-build-windows-cmake
uses: actions/cache@v3
with:
path: build
key: build-windows-cmake-cache
- if: ${{ steps.cache-build-windows-cmake.outputs.cache-hit != 'true' }}
name: Configure
run: |
mkdir build
cd build
Expand Down