WIP: Add macOS builds for drone #15

Closed
JonasFranz wants to merge 25 commits from feature/drone-ios into master
2 changed files with 35 additions and 2 deletions
Showing only changes of commit 3c53045598 - Show all commits

View File

@ -14,7 +14,9 @@ pipeline:
secrets: [ ssh_username, ssh_key ] secrets: [ ssh_username, ssh_key ]
port: 1413 port: 1413
source: ./ source: ./
target: /tmp/drone_build_$$DRONE_BUILD_NUMBER target: /tmp/drone_build_${DRONE_BUILD_NUMBER}
when:
event: [ push, tag]
test: test:
image: nathansamson/flutter-builder-docker:v0.6.0 image: nathansamson/flutter-builder-docker:v0.6.0
@ -34,6 +36,22 @@ pipeline:
- mv build/app/outputs/apk/*/*.apk apks - mv build/app/outputs/apk/*/*.apk apks
when: when:
event: [ push, tag ] 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 # Push the releases to our pseudo-s3-bucket
release: release:

View File

@ -27,4 +27,19 @@ build-debug:
.PHONY: build-profile .PHONY: build-profile
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)