Skip to content

Commit

Permalink
Improve caching
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 16, 2024
1 parent e0a9ae7 commit e53d0f4
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}

build_app:
runs-on: ubuntu-latest
Expand All @@ -84,7 +84,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- working-directory: ${{runner.workspace}}/build/examples/app
run: ./gradlew assembleDebug
- working-directory: ${{runner.workspace}}/build/examples/app
Expand All @@ -111,7 +111,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- working-directory: ${{runner.workspace}}/build/examples/graphics
run: ./gradlew assembleDebug
- working-directory: ${{runner.workspace}}/build/examples/graphics
Expand All @@ -137,7 +137,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- working-directory: ${{runner.workspace}}/build/examples/render
run: ./gradlew assembleDebug
- working-directory: ${{runner.workspace}}/build/examples/render
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}

build_tests:
runs-on: ubuntu-latest
Expand All @@ -69,7 +69,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target yup_tests
- working-directory: ${{runner.workspace}}/build/tests/Debug
run: ./yup_tests
Expand All @@ -87,7 +87,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_console

Expand All @@ -101,7 +101,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_app

Expand All @@ -115,7 +115,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_graphics

Expand All @@ -129,7 +129,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_render
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_render

Expand All @@ -143,6 +143,6 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_plugin
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_plugin
14 changes: 7 additions & 7 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}

build_tests:
runs-on: macos-latest
Expand All @@ -60,7 +60,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target yup_tests
- working-directory: ${{runner.workspace}}/build/tests/Debug
run: ./yup_tests
Expand All @@ -76,7 +76,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_console

Expand All @@ -88,7 +88,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_app

Expand All @@ -100,7 +100,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_graphics

Expand All @@ -112,7 +112,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_render
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_render

Expand All @@ -124,6 +124,6 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_plugin
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_plugin
14 changes: 7 additions & 7 deletions .github/workflows/build_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}

build_tests:
runs-on: ubuntu-latest
Expand All @@ -71,7 +71,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target yup_tests
- working-directory: ${{runner.workspace}}/build/tests/Debug
run: node yup_tests.js
Expand All @@ -93,7 +93,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_console
- run: emcmake cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_console

Expand All @@ -111,7 +111,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_app
- run: emcmake cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_app

Expand All @@ -129,7 +129,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_graphics
- run: emcmake cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_graphics

Expand All @@ -147,7 +147,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_render
- run: emcmake cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_render

Expand All @@ -165,6 +165,6 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: emcmake cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_plugin
- run: emcmake cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_plugin
14 changes: 7 additions & 7 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}

build_tests:
runs-on: windows-latest
Expand All @@ -61,7 +61,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target yup_tests
- working-directory: ${{runner.workspace}}/build/tests/Debug
run: ./yup_tests.exe
Expand All @@ -78,7 +78,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_console

Expand All @@ -91,7 +91,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_app

Expand All @@ -104,7 +104,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_graphics

Expand All @@ -117,7 +117,7 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_render
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_render

Expand All @@ -130,6 +130,6 @@ jobs:
- uses: actions/cache/restore@v4
with:
path: ${{runner.workspace}}/build
key: ${{ runner.os }}-build-${{ github.sha }}
key: ${{ runner.name }}-build-${{ github.sha }}
- run: cmake --build ${{runner.workspace}}/build --config Debug --parallel 4 --target example_plugin
- run: cmake --build ${{runner.workspace}}/build --config Release --parallel 4 --target example_plugin

0 comments on commit e53d0f4

Please sign in to comment.