-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build universal binary instead of architecture dependent
- Loading branch information
Showing
4 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,7 @@ task: | |
- export PATH=$(pwd)/.build/arm64-apple-macosx/debug:$PATH | ||
# Run integration tests | ||
- cd integration-tests | ||
- HOMEBREW_NO_AUTO_UPDATE=1 brew install virtualenv | ||
- virtualenv venv | ||
- python3 -m venv --symlinks venv | ||
- source venv/bin/activate | ||
- pip install -r requirements.txt | ||
- pytest --verbose --junit-xml=pytest-junit.xml | ||
|
@@ -48,18 +47,14 @@ task: | |
|
||
task: | ||
only_if: $CIRRUS_TAG == '' | ||
env: | ||
matrix: | ||
BUILD_ARCH: arm64 | ||
BUILD_ARCH: x86_64 | ||
name: Build ($BUILD_ARCH) | ||
name: Build (universal) | ||
alias: build | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-runner:sonoma | ||
build_script: swift build --arch $BUILD_ARCH --product tart | ||
sign_script: codesign --sign - --entitlements Resources/tart-dev.entitlements --force .build/$BUILD_ARCH-apple-macosx/debug/tart | ||
build_script: swift build --arch arm64 --arch x86_64 --product tart | ||
sign_script: codesign --sign - --entitlements Resources/tart-dev.entitlements --force .build/apple/Products/Debug/tart | ||
binary_artifacts: | ||
path: .build/$BUILD_ARCH-apple-macosx/debug/tart | ||
path: .build/apple/Products/Debug/tart | ||
|
||
task: | ||
only_if: $CIRRUS_TAG == '' && ($CIRRUS_USER_PERMISSION == 'write' || $CIRRUS_USER_PERMISSION == 'admin') | ||
|
@@ -121,7 +116,7 @@ task: | |
- security import certificate.p12 -k build.keychain -P password101 -T /usr/bin/codesign -T /usr/bin/pkgbuild | ||
- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password101 build.keychain | ||
- xcrun notarytool store-credentials "notarytool" --apple-id "[email protected]" --team-id "9M2P8L4D89" --password $AC_PASSWORD | ||
install_script: | ||
install_script: | ||
- brew install go goreleaser/tap/goreleaser-pro getsentry/tools/sentry-cli | ||
- brew install mitchellh/gon/gon | ||
info_script: | ||
|
@@ -130,7 +125,7 @@ task: | |
- swift -version | ||
release_script: goreleaser | ||
upload_sentry_debug_files_script: | ||
- cd .build/arm64-apple-macosx/release/ | ||
- cd .build/apple/Products/Release/ | ||
# Generate and upload symbols | ||
- dsymutil tart | ||
- sentry-cli debug-files upload tart.dSYM/ | ||
|
@@ -153,7 +148,7 @@ task: | |
registry_config: ENCRYPTED[!cf1a0f25325aa75bad3ce6ebc890bc53eb0044c02efa70d8cefb83ba9766275a994b4831706c52630a0692b2fa9cfb9e!] | ||
env: | ||
DEPLOY_TOKEN: ENCRYPTED[!45ed45666558902ed1c2400add734ec063103bec31841847e8c8764802fca229bfa6d85c690e16ad159e047574b48793!] | ||
deploy_script: | ||
deploy_script: | ||
- git config --global user.name "Cirrus CI" | ||
- git config --global user.name "[email protected]" | ||
- git remote set-url origin https://[email protected]/cirruslabs/tart/ | ||
|
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
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
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