Skip to content

A platform for community discussion. Free, open, simple.

DEV: Cache minio binaries cause downloading them is slow (#28956)

Alan Guo Xiang Tan9a2e6fc89068
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8dc10f49024..eb5133525f6 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -44,6 +44,7 @@ jobs:
DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS: ${{ (matrix.build_type == 'system' || matrix.build_type == 'backend') && github.ref == 'refs/heads/main' && '1' }}
CHEAP_SOURCE_MAPS: "1"
TESTEM_DEFAULT_BROWSER: Chrome
+ MINIO_RUNNER_INSTALL_DIR: /home/discourse/.minio_runner
strategy:
fail-fast: false
@@ -255,6 +256,13 @@ jobs:
if: matrix.build_type == 'system'
run: bin/ember-cli --build
+ - name: Minio cache
+ if: matrix.build_type == 'system' && matrix.target == 'core'
+ uses: actions/cache@v4
+ with:
+ path: ${{ env.MINIO_RUNNER_INSTALL_DIR }}
+ key: ${{ runner.os }}-${{ steps.container-envs.outputs.ruby_version }}-${{ steps.container-envs.outputs.debian_release }}-gem-${{ hashFiles('**/Gemfile.lock') }}
+
- name: Ensure latest minio binary installed for Core System Tests
if: matrix.build_type == 'system' && matrix.target == 'core'
run: bundle exec ruby script/install_minio_binaries.rb