From d096450d2010909f80cc5968658039b064b9559d Mon Sep 17 00:00:00 2001 From: Nihal Agazade <43378371+icarusdust@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:35:39 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..3e79f1dcd0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Xcode - Build and Analyze + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + name: Build and analyse default scheme using xcodebuild command + runs-on: macos-13 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Ruby Bundler + run: gem install bundler:2.3.11 + - name: Install Ruby Gems + run: bundle install + - name: Install Arkana + run: bundle exec arkana -e ./env/.env + - name: Install Pods + run: bundle exec pod install + - name: Build project + run: | + set -eo pipefail + time xcodebuild clean build -workspace Mastodon.xcworkspace \ + -scheme Mastodon \ + -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO