Skip to content

Commit

Permalink
Create parallels_issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathrajsrinivasan authored Aug 30, 2024
1 parent 7877680 commit c6bf7a3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/parallels_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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=2
RETRY_COUNT=0
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

0 comments on commit c6bf7a3

Please sign in to comment.