Testing Parallels 2 #2
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: Testing Parallels 2 | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['macos-12','macos-13','macos-14-large'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Run | |
shell: bash | |
run: | | |
brew install --cask parallels | |
brew install --cask parallels-virtualization-sdk | |
- name: Retry command | |
run: | | |
MAX_RETRIES=3 | |
RETRY_COUNT=0 | |
sleep 60 | |
until [ $RETRY_COUNT -ge $MAX_RETRIES ] | |
do | |
sudo kextload /Applications/Parallels\ Desktop.app/Contents/Library/Extensions/10.9/prl_hypervisor.kext && break | |
RETRY_COUNT=$((RETRY_COUNT+1)) | |
echo "Retry #$RETRY_COUNT failed. Waiting before retrying..." | |
sleep 2 | |
done | |
if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then | |
echo "Command failed after $MAX_RETRIES attempts." | |
exit 1 | |
fi |