From b967a1362ea7c769441d81a5244bc89e384d570e Mon Sep 17 00:00:00 2001 From: Visual Ehrmanntraut <30368284+VisualEhrmanntraut@users.noreply.github.com> Date: Wed, 22 May 2024 19:01:31 +0300 Subject: [PATCH] Misc workflow fixes --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ac7ffe..16312d3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,8 @@ jobs: build: name: Build runs-on: macos-latest + permissions: + contents: write env: JOB_TYPE: BUILD steps: @@ -24,8 +26,8 @@ jobs: run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 - name: Lilu Bootstrap run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 - - run: xcodebuild -configuration Debug - - run: xcodebuild -configuration Release + - run: xcodebuild -configuration Debug -arch x86_64 build + - run: xcodebuild -configuration Release -arch x86_64 build - name: Upload build uses: svenstaro/upload-release-action@2.9.0 if: github.event_name != 'pull_request' @@ -33,6 +35,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: build/*/*.zip tag: ${{ github.event_name == 'release' && github.ref || 'nightly' }} + body: ${{ github.event_name != 'release' && github.event.head_commit.message || '' }} file_glob: true prerelease: ${{ github.event_name != 'release' }} overwrite: true @@ -50,5 +53,5 @@ jobs: run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 - name: Lilu Bootstrap run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/bootstrap.sh) && eval "$src" || exit 1 - - run: xcodebuild analyze -quiet -scheme NootRX -configuration Debug CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] - - run: xcodebuild analyze -quiet -scheme NootRX -configuration Release CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ] + - run: xcodebuild analyze -quiet -scheme NootRX -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 NootRX -configuration Release -arch x86_64 CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang-analyze" && [ "$(find clang-analyze -name "*.html")" = "" ]