Skip to content

fix: Invert size check #1209

fix: Invert size check

fix: Invert size check #1209

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
build:
name: Build
runs-on: macos-latest
permissions:
contents: write
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- run: xcodebuild -configuration Debug -arch x86_64 build
- run: xcodebuild -configuration Release -arch x86_64 build
- name: Upload to Artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/*/*.zip
- name: Upload build
uses: svenstaro/upload-release-action@2.9.0
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*/*.zip
tag: ${{ github.ref }}
file_glob: true
overwrite: true
analyse-clang:
name: Analyse Clang
runs-on: macos-latest
env:
JOB_TYPE: ANALYZE
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Debug -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]
- run: xcodebuild analyze -quiet -scheme NootedRed -configuration Release -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]