From 595b12a09848c96d0a61251a7b0c13059c09f5d8 Mon Sep 17 00:00:00 2001 From: fedor Date: Wed, 15 Jun 2022 15:46:28 -0400 Subject: [PATCH 1/2] Build Tart inside a Tart VM --- .cirrus.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index c956e35f..3e458403 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,14 +1,15 @@ -persistent_worker: - labels: - name: Mac-Mini-M1 - task: - name: Test + name: Test on Ventura + persistent_worker: + labels: + name: Mac-Mini-M1 test_script: swift test task: name: Build only_if: $CIRRUS_TAG == '' + macos_instance: + image: ghcr.io/cirruslabs/macos-monterey-xcode:14 build_script: swift build --product tart sign_script: codesign --sign - --entitlements Resources/tart.entitlements --force .build/debug/tart binary_artifacts: @@ -17,9 +18,12 @@ task: task: name: Release only_if: $CIRRUS_TAG != '' + macos_instance: + image: ghcr.io/cirruslabs/macos-monterey-xcode:14 env: GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!] GORELEASER_KEY: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!] + install_script: brew install goreleaser/tap/goreleaser-pro info_script: - xcodebuild -version - swift -version From 8c06d8c85f79f6128b4d42bb2e0c13d009f0d9ea Mon Sep 17 00:00:00 2001 From: fedor Date: Wed, 15 Jun 2022 15:50:11 -0400 Subject: [PATCH 2/2] Separate scripts --- .cirrus.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.cirrus.yml b/.cirrus.yml index 3e458403..a4bdacd5 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -3,6 +3,7 @@ task: persistent_worker: labels: name: Mac-Mini-M1 + build_script: swift test test_script: swift test task: