Fix macOS GH action
This commit is contained in:
parent
c65b45460b
commit
aeeb9fe761
|
@ -64,7 +64,7 @@ jobs:
|
||||||
- name: First set up.
|
- name: First set up.
|
||||||
run: |
|
run: |
|
||||||
sudo chown -R `whoami`:admin /usr/local/share
|
sudo chown -R `whoami`:admin /usr/local/share
|
||||||
brew install automake
|
brew install automake ninja
|
||||||
|
|
||||||
# Disable spotlight.
|
# Disable spotlight.
|
||||||
sudo mdutil -a -i off
|
sudo mdutil -a -i off
|
||||||
|
@ -113,13 +113,14 @@ jobs:
|
||||||
./configure.sh \
|
./configure.sh \
|
||||||
-D CMAKE_C_FLAGS="-Werror" \
|
-D CMAKE_C_FLAGS="-Werror" \
|
||||||
-D CMAKE_CXX_FLAGS="-Werror" \
|
-D CMAKE_CXX_FLAGS="-Werror" \
|
||||||
|
-D CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO \
|
||||||
-D TDESKTOP_API_TEST=ON \
|
-D TDESKTOP_API_TEST=ON \
|
||||||
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
|
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
|
||||||
$DEFINE
|
$DEFINE
|
||||||
|
|
||||||
cd ../out
|
cd ../out
|
||||||
|
|
||||||
xcoderun='xcodebuild build -project Telegram.xcodeproj -scheme Telegram -destination "platform=macOS,arch=x86_64" -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO'
|
xcoderun='xcodebuild build -project Telegram.xcodeproj -scheme Telegram -destination "platform=macOS,arch=x86_64" -configuration Debug'
|
||||||
bash -c "$xcoderun" || bash -c "$xcoderun" || bash -c "$xcoderun"
|
bash -c "$xcoderun" || bash -c "$xcoderun" || bash -c "$xcoderun"
|
||||||
|
|
||||||
- name: Move artifact.
|
- name: Move artifact.
|
||||||
|
|
Loading…
Reference in New Issue