Skip to content

Commit a2d0ad4

Browse files
committed
Cache mysql downloads in actions
Should speed up CI times
1 parent 487962a commit a2d0ad4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/testing-mysql-server-8.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-22.04, ubuntu-24.04, macos-14]
13+
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
1414
fail-fast: false
1515
runs-on: ${{ matrix.os }}
1616

@@ -27,19 +27,24 @@ jobs:
2727
distribution: 'corretto'
2828
cache: 'maven'
2929
- name: Set up Homebrew
30-
if: matrix.os == 'macos-14'
30+
if: matrix.os == 'macos-latest'
3131
id: set-up-homebrew
3232
uses: Homebrew/actions/setup-homebrew@master
3333
- name: Install GNU binutils
34-
if: matrix.os == 'macos-14'
34+
if: matrix.os == 'macos-latest'
3535
run: |
3636
brew install binutils
3737
brew install patchelf
3838
echo /opt/homebrew/opt/binutils/bin >> $GITHUB_PATH
3939
- name: Install libaio-dev
40-
if: matrix.os != 'macos-14'
40+
if: matrix.os != 'macos-latest'
4141
run: |
4242
sudo apt-get install -y libaio-dev
43+
- name: Cache mysql downloads
44+
uses: actions/cache@v4
45+
with:
46+
path: testing-mysql-server-8/dist
47+
key: mysql-downloads-${{ hashFiles('**/repack-mysql-8.sh') }}
4348
- name: Run Maven install
4449
run: |
4550
echo $PATH

0 commit comments

Comments
 (0)