From fc50ee3c3d1ce82ac4a31f0c6a907b8ee61a9a26 Mon Sep 17 00:00:00 2001 From: kru42 <87116040+kru42@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:04:09 +0200 Subject: [PATCH] Create swift.yml --- .github/workflows/swift.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..06da7ef --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,33 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Build + run: | + cd SwiftVN + xcodebuild build -project SwiftVN.xcodeproj -scheme SwiftVN clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No + + - name: Run tests + run: | + cd SwiftVN + xcodebuild test -project SwiftVN.xcodeproj -scheme SwiftVN clean build -sdk iphoneos -destination "platform=iOS Simulator,OS=17.0,name=iPhone 13" CODE_SIGNING_ALLOWED=No