From 69dec865ff00dcf3712cc8985c83bc5ee45e47a6 Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Mon, 29 Mar 2021 03:42:20 +0300 Subject: [PATCH] Add GitHub Action to test if project is buildable. --- .github/workflows/debug.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 000000000..1e4f9c647 --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,32 @@ + +name: Check if Cog buildable +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build Cog for Intel + runs-on: macos-latest + steps: + - name: Check out repository + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Run xcodebuild + run: > + xcodebuild + -workspace Cog.xcodeproj/project.xcworkspace + -scheme Cog + -configuration Debug + -derivedDataPath output + build + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: Cog + path: output/Build/Products/Debug/Cog.app