From e621000954fd3d30502e8d012ad9d0aabc08ab14 Mon Sep 17 00:00:00 2001 From: NickAc <32451103+NickAcPT@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:24:16 +0100 Subject: [PATCH] Docker pt. 2 --- .github/workflows/rust.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ed20a54..5b2d165 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -42,9 +42,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Docker + - name: Set up Docker (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} uses: crazy-max/ghaction-setup-docker@v3 + - name: Set up Docker + if: ${{ matrix.os == 'macos-latest' }} + run: | + brew install docker + colima start + # For testcontainers to find the Colima socket + # https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running + sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3