Fix Colima builds failing

This commit is contained in:
undergroundwires
2024-05-20 17:32:21 +02:00
parent 292362135d
commit f9a54c7e68
2 changed files with 15 additions and 3 deletions

View File

@@ -86,9 +86,21 @@ jobs:
name: Install Docker on macOS name: Install Docker on macOS
if: contains(matrix.os, 'macos') # macOS runner is missing Docker if: contains(matrix.os, 'macos') # macOS runner is missing Docker
run: |- run: |-
# Verify Intel-based macOS
arch=$(uname -m)
case "$arch" in
i386|x86_64)
echo "Supported architecture: $arch"
;;
*)
>&2 echo 'The macOS is not running on a supported Intel architecture. Virtualization is not supported.'
exit 1
;;
esac
# Install Docker # Install Docker
brew install docker brew install docker
# Docker on macOS misses daemon due to licensing, so install colima as runtime # Docker on macOS does not include the Docker daemon due to licensing issues.
# Install Colima to use as the Docker runtime.
brew install colima brew install colima
# Start the daemon # Start the daemon
colima start colima start

View File

@@ -10,8 +10,8 @@ jobs:
strategy: strategy:
matrix: matrix:
os: os:
- macos-latest # Apple silicon (ARM64) - macos-latest # Latest Apple silicon (ARM64)
- macos-13 # Intel-based (x86-64) - macos-12 # Latest Intel-based (x86-64)
- ubuntu-latest - ubuntu-latest
- windows-latest - windows-latest
fail-fast: false # Allows to see results from other combinations fail-fast: false # Allows to see results from other combinations