ci: use xcode-select verify instead of sudo
This commit is contained in:
12
.github/workflows/apple-build.yml
vendored
12
.github/workflows/apple-build.yml
vendored
@@ -18,10 +18,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch main http://192.168.120.110:4000/AI_Team/habo.git .
|
git clone --depth 1 --branch main http://192.168.120.110:4000/AI_Team/habo.git .
|
||||||
- name: Setup Xcode
|
- name: Verify Xcode
|
||||||
run: |
|
run: xcodebuild -version
|
||||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
|
||||||
xcodebuild -version
|
|
||||||
- name: Install Flutter
|
- name: Install Flutter
|
||||||
run: |
|
run: |
|
||||||
if [ ! -d "$HOME/flutter" ]; then
|
if [ ! -d "$HOME/flutter" ]; then
|
||||||
@@ -46,10 +44,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch main http://192.168.120.110:4000/AI_Team/habo.git .
|
git clone --depth 1 --branch main http://192.168.120.110:4000/AI_Team/habo.git .
|
||||||
- name: Setup Xcode
|
- name: Verify Xcode
|
||||||
run: |
|
run: xcodebuild -version
|
||||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
|
||||||
xcodebuild -version
|
|
||||||
- name: Install Flutter
|
- name: Install Flutter
|
||||||
run: |
|
run: |
|
||||||
if [ ! -d "$HOME/flutter" ]; then
|
if [ ! -d "$HOME/flutter" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user