WIP: Add macOS builds for drone #15
20
.drone.yml
20
.drone.yml
|
@ -14,7 +14,9 @@ pipeline:
|
|||
secrets: [ ssh_username, ssh_key ]
|
||||
port: 1413
|
||||
source: ./
|
||||
target: /tmp/drone_build_$$DRONE_BUILD_NUMBER
|
||||
target: /tmp/drone_build_${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
event: [ push, tag]
|
||||
|
||||
test:
|
||||
image: nathansamson/flutter-builder-docker:v0.6.0
|
||||
|
@ -34,6 +36,22 @@ pipeline:
|
|||
- mv build/app/outputs/apk/*/*.apk apks
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
|
||||
build_ios:
|
||||
image: appleboy/drone-ssh
|
||||
host: home.jonasfranz.software
|
||||
port: 1413
|
||||
secrets: [ ssh_username, ssh_key ]
|
||||
script:
|
||||
- cd /tmp/drone_build_${DRONE_BUILD_NUMBER}
|
||||
- flutter packages get
|
||||
- make build-ios-all
|
||||
- mkdir ipas
|
||||
- mv build/app/out
|
||||
- cd ..
|
||||
- rm -rf /tmp/drone_build_${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
event: [ push, tag]
|
||||
|
||||
# Push the releases to our pseudo-s3-bucket
|
||||
release:
|
||||
|
|
17
Makefile
17
Makefile
|
@ -27,4 +27,19 @@ build-debug:
|
|||
|
||||
.PHONY: build-profile
|
||||
build-profile:
|
||||
flutter build apk --profile --build-name=$(VERSION)
|
||||
flutter build apk --profile --build-name=$(VERSION)
|
||||
|
||||
.PHONY: build-ios-all
|
||||
build-all: build-ios-release build-ios-debug build-ios-profile
|
||||
|
||||
.PHONY: build-ios-release
|
||||
build-release:
|
||||
flutter build ios --release --build-name=$(VERSION)
|
||||
|
||||
.PHONY: build-ios-debug
|
||||
build-debug:
|
||||
flutter build ios --debug --build-name=$(VERSION)
|
||||
|
||||
.PHONY: build-ios-profile
|
||||
build-profile:
|
||||
flutter build ios --profile --build-name=$(VERSION)
|
Reference in New Issue