File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
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 }}
You can’t perform that action at this time.
0 commit comments