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")" = "" ]