8000 Fix #75: the ci cache fails for windows msys2 workflows by pedrolcl · Pull Request #76 · pedrolcl/sonivox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix #75: the ci cache fails for windows msys2 workflows #76

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 2 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/freebsd-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: cache
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: FreeBSD test
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions/cache/save@v4
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: cache
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Configure CMake with USE_44KHZ=${{ matrix.USE_44KHZ }} and USE_16BITS_SAMPLES=${{ matrix.USE_16BITS_SAMPLES }}'
Expand All @@ -56,7 +56,7 @@ jobs:
uses: actions/cache/save@v4
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Build'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: cache
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: Configure CMake
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions/cache/save@v4
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/win-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: cache
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Configure CMake'
Expand All @@ -50,7 +50,7 @@ jobs:
uses: actions/cache/save@v4
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Build'
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/win-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: SonivoxV3
TEMP: ${{github.workspace}}/temp/

jobs:
build:
Expand Down Expand Up @@ -46,26 +45,34 @@ jobs:
ninja:p
gtest:p

- name: '${{ matrix.icon }} Temp Environment Variable'
- name: '${{ matrix.icon }} Temp Directory'
run: mkdir temp

- name: '${{ matrix.icon }} Restore DLS Cache'
uses: actions/cache/restore@v4
id: cache
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Copy soundfont to TEMP'
if: steps.cache.outputs.cache-hit == 'true'
run: cp temp/soundfont.dls $TEMP

- name: '${{ matrix.icon }} Configure CMake'
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -G Ninja

- name: '${{ matrix.icon }} Copy from TEMP'
if: steps.cache.outputs.cache-hit != 'true'
run: cp $TEMP/soundfont.dls temp/soundfont.dls

- name: '${{ matrix.icon }} Store DLS Cache'
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: soundfont.dls
path: temp
path: temp/soundfont.dls
enableCrossOsArchive: true

- name: '${{ matrix.icon }} Build'
Expand Down
0