Skip to content

Commit ed65782

Browse files
Fix cache configuration and artifact upload issues
Co-authored-by: Matt-DESTROYER <69026158+Matt-DESTROYER@users.noreply.github.com>
1 parent 2628764 commit ed65782

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ jobs:
5959
id: cache-glfw
6060
uses: actions/cache@v5
6161
with:
62-
path: ${{ github.workspace }}/glfw
62+
path: |
63+
${{ github.workspace }}/glfw/build
64+
${{ github.workspace }}/glfw/install
6365
key: glfw-${{ runner.os }}-${{ matrix.c_compiler }}-${{ hashFiles('glfw/**') }}
6466

6567
- name: Configure CMake for GLFW
68+
if: steps.cache-glfw.outputs.cache-hit != 'true'
6669
run: >
6770
cmake -S ${{ github.workspace }}/glfw -B ${{ github.workspace }}/glfw/build
6871
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
@@ -76,6 +79,7 @@ jobs:
7679
${{ matrix.generator_args }}
7780
7881
- name: Build and install GLFW
82+
if: steps.cache-glfw.outputs.cache-hit != 'true'
7983
run: |
8084
cmake --build ${{ github.workspace }}/glfw/build --config ${{ matrix.build_type }}
8185
cmake --install ${{ github.workspace }}/glfw/build --config ${{ matrix.build_type }}
@@ -128,8 +132,7 @@ jobs:
128132
if: github.ref_type == 'tag'
129133
with:
130134
files: |
131-
Snake-${{ matrix.os }}.zip
132-
Snake-${{ matrix.os }}.tar.gz
135+
Snake-${{ matrix.os }}.*
133136
generate_release_notes: true
134137
env:
135138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)