ci/local: Test macOS build #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS build | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Install Docker | |
run: | | |
curl -sL https://desktop.docker.com/mac/main/amd64/Docker.dmg > Docker.dmg | |
sudo hdiutil attach Docker.dmg | |
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license --user=`whoami` | |
sudo hdiutil detach /Volumes/Docker | |
# ps aux | grep -i docker | |
# pgrep Docker | |
TIMEOUT=120 | |
SECONDS=0 | |
while ! docker system info > /dev/null 2>&1; do | |
if [ $SECONDS -ge $TIMEOUT ]; then | |
echo "Docker failed to start within $TIMEOUT seconds." | |
docker system info | |
exit 1 | |
fi | |
echo "Waiting for Docker to be available... ($SECONDS seconds elapsed)" | |
sleep 1 | |
done | |
echo "Docker is now available." | |
- run: | | |
docker --version |