From 71ca9ee16825c5ee89038de8b4476e3f289b293a Mon Sep 17 00:00:00 2001 From: Jake Shirley Date: Thu, 7 Sep 2023 23:38:27 -0700 Subject: [PATCH] doop --- .github/workflows/ci_build.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 7096a7ceb..5217b5da0 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -1,4 +1,4 @@ -name: CI - Build +name: CI - Build & Test on: push: @@ -12,7 +12,37 @@ on: - dev jobs: - xcode-build: + Build: + permissions: write-all + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: "Test SDK versions" + run: | + xcodebuild -showsdks + + - name: "Xcode Test" + uses: sersoft-gmbh/xcodebuild-action@v2 + with: + project: Mlem.xcodeproj + scheme: Mlem + destination: platform=iOS Simulator,name=iPhone 14,OS=16.2 + action: build + result-bundle-path: test_results.xcresult + + #- name: Build with xcodebuild + # run: | + # xcodebuild -project ./Mlem.xcodeproj -scheme "Mlem" -sdk "iphonesimulator16.2" -quiet -resultBundlePath "build_results.xcresult" + - uses: kishikawakatsumi/xcresulttool@v1 + with: + path: test_results.xcresult + upload-bundles: never # Permission issues with uploading + if: success() || failure() + # ^ This is important because the action will be run + # even if the test fails in the previous step. + + Test: permissions: write-all runs-on: macos-latest steps: