From a161341bcacd0569843b47d46c2ed3396b9bb0d7 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Mon, 10 Feb 2020 21:11:26 +0000 Subject: [PATCH] build xcode --- .github/workflows/build-test.yml | 22 ++++++++++++++++++++++ .github/workflows/swift.yml | 15 --------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/build-test.yml delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..7053112 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,22 @@ +name: Swift + +on: [push] + +jobs: + build: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + + - name: Force Xcode 11 + run: sudo xcode-select -switch /Applications/Xcode_11.3.app + + - name: Run tests + run: xcodebuild clean test -project "MTMR.xcodeproj" -scheme "UnitTests" + + - name: Build Archive + run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive + + - name: Build App + run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index 2e76632..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Swift - -on: [push] - -jobs: - build: - - runs-on: macOS-latest - - steps: - - uses: actions/checkout@v1 - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v