From 5bee104713efc11e7d42e9ae07258bc400dc68b7 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Fri, 4 Aug 2023 18:06:18 -0500 Subject: [PATCH] Pre-fetch polyglot snapshot There's no way to configure extensions.xml to use a snapshot repo, other than the global settings.xml, so we prefetch it manually. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbfb48e2d973..fbb1db6e5cc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,10 +29,12 @@ jobs: distribution: 'zulu' java-version: ${{ matrix.java-version }} cache: 'maven' + - name: prefetch-polyglot + run: "cd .. ; mvn -B dependency:get -Dartifact=io.takari.polyglot:polyglot-ruby:0.4.11-SNAPSHOT -DremoteRepositories=central::default::https://repo.maven.apache.org/maven2,snapshots::::https://oss.sonatype.org/content/repositories/snapshots ; cd -" - name: bootstrap run: mvn -Pbootstrap clean package - name: bundle install - run: bin/jruby --dev -S bundle install + run: bin/jruby -B --dev -S bundle install - name: Save bootstrap build id: cache-bootstrap-save uses: actions/cache/save@v3