mirror of https://github.com/cirruslabs/tart.git
Use GoReleaser for releases (#27)
This commit is contained in:
parent
ad2db1461f
commit
609a2530dd
15
.cirrus.yml
15
.cirrus.yml
|
|
@ -1,5 +1,6 @@
|
|||
task:
|
||||
name: Build
|
||||
only_if: $CIRRUS_TAG == ''
|
||||
persistent_worker:
|
||||
labels:
|
||||
os: darwin
|
||||
|
|
@ -7,4 +8,16 @@ task:
|
|||
build_script: swift build
|
||||
sign_script: codesign --sign - --entitlements Sources/tart/tart.entitlements --force .build/debug/tart
|
||||
binary_artifacts:
|
||||
path: .build/debug/tart
|
||||
path: .build/debug/tart
|
||||
|
||||
task:
|
||||
name: Release
|
||||
only_if: $CIRRUS_TAG != ''
|
||||
persistent_worker:
|
||||
labels:
|
||||
os: darwin
|
||||
arch: arm64
|
||||
env:
|
||||
GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!]
|
||||
GORELEASER_TOKEN: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!]
|
||||
release_script: goreleaser
|
||||
|
|
|
|||
|
|
@ -10,3 +10,6 @@ tart.xcodeproj/
|
|||
|
||||
# Swift
|
||||
.build/
|
||||
|
||||
# GoReleaser
|
||||
dist/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
project_name: tart
|
||||
|
||||
builds:
|
||||
- builder: prebuilt
|
||||
goos:
|
||||
- darwin
|
||||
goarch:
|
||||
- arm64
|
||||
prebuilt:
|
||||
path: .build/{{ .Arch }}-apple-macosx/release/tart
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- swift build --product tart
|
||||
|
||||
after:
|
||||
hooks:
|
||||
- codesign --sign - --entitlements Sources/tart/tart.entitlements --force .build/arm64-apple-macosx/release/tart
|
||||
|
||||
archives:
|
||||
- id: binary
|
||||
format: binary
|
||||
name_template: "{{ .ProjectName }}"
|
||||
- id: regular
|
||||
name_template: "{{ .ProjectName }}"
|
||||
|
||||
release:
|
||||
prerelease: auto
|
||||
|
||||
brews:
|
||||
- name: tart
|
||||
ids:
|
||||
- regular
|
||||
tap:
|
||||
owner: cirruslabs
|
||||
name: homebrew-cli
|
||||
caveats: See the Github repository for more information
|
||||
homepage: https://github.com/cirruslabs/tart
|
||||
description: Run macOS VMs on Apple Silicon
|
||||
skip_upload: auto
|
||||
Loading…
Reference in New Issue