Skip to content

Commit

Permalink
Reduce docker setup time by just installing CLIs
Browse files Browse the repository at this point in the history
Colima is now pre-installed on macOS runners, which provides
a container runtime and docker CLI can use without setting up
Docker Desktop and facing licensing issues:
actions/runner-images#6216 (comment)
  • Loading branch information
joffrey-bion committed Oct 12, 2022
1 parent 5837904 commit 028bc5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:

# Docker is not installed on GitHub's MacOS hosted workers due to licensing issues
# (and it's necessary to run Autobahn tests)
- name: Install docker and docker-compose (missing on MacOS)
- name: Install docker and docker-compose CLIs (missing on MacOS)
if: matrix.os == 'macos-latest'
uses: docker-practice/actions-setup-docker@master
with:
docker_buildx: false
run: brew install docker docker-compose

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:

# Docker is not installed on GitHub's MacOS hosted workers due to licensing issues
# (and it's necessary to run Autobahn tests)
- name: Install docker and docker-compose (missing on MacOS)
uses: docker-practice/actions-setup-docker@master
with:
docker_buildx: false
- name: Install docker and docker-compose CLIs (missing on MacOS)
run: brew install docker docker-compose

# The publishToSonatype task and the repository release need to be in the same Gradle call
# so that the closeAndRelease task knows which staging repository was created by publishToSonatype
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:

# Docker is not installed on GitHub's MacOS hosted workers due to licensing issues
# (and it's necessary to run Autobahn tests)
- name: Install docker and docker-compose (missing on MacOS)
uses: docker-practice/actions-setup-docker@master
with:
docker_buildx: false
- name: Install docker and docker-compose CLIs (missing on MacOS)
run: brew install docker docker-compose

- name: Test build before release
uses: gradle/gradle-build-action@v2
Expand Down

0 comments on commit 028bc5b

Please sign in to comment.