From 916526ea4f686a11cbc709220d887e6f3ea4722c Mon Sep 17 00:00:00 2001 From: Viktor Popp Date: Tue, 27 Aug 2024 11:43:34 +0200 Subject: [PATCH] Delete .github/workflows/xcode_build.yml --- .github/workflows/xcode_build.yml | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/xcode_build.yml diff --git a/.github/workflows/xcode_build.yml b/.github/workflows/xcode_build.yml deleted file mode 100644 index dc3b145..0000000 --- a/.github/workflows/xcode_build.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Xcode - Build and Analyze - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - name: Build and analyse default scheme using xcodebuild command - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - # Setting up Premake5 - - uses: abel0b/setup-premake@v2.4 - with: - version: "5.0.0-beta2" - - # Generate project - - name: Generate project files - run: ./vendor/premake/premake5 xcode - - - - name: Set Default Scheme - run: | - scheme_list=$(xcodebuild -list -json | tr -d "\n") - default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") - echo $default | cat >default - echo Using default scheme: $default - - name: Build - env: - scheme: ${{ 'default' }} - run: | - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}