Skip to content

Commit

Permalink
Revert "CI: Add build annotation step to macOS arm64 builds"
Browse files Browse the repository at this point in the history
This reverts commit a8ad8ba.
  • Loading branch information
PatTheMav authored and RytoEX committed Oct 9, 2023
1 parent aed040f commit c51c117
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/build-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
notarize: ${{ steps.setup.outputs.notarize }}
config: ${{ steps.setup.outputs.config }}
commitHash: ${{ steps.setup.outputs.commitHash }}
annotate: ${{ steps.setup.outputs.annotate }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -29,26 +28,25 @@ jobs:
case "${GITHUB_EVENT_NAME}" in
pull_request)
config_data=('codesign:false' 'notarize:false' 'package:false' 'config:RelWithDebInfo' 'annotate:false')
label_data=$(gh pr view ${{ github.event.number }} --json labels)
if echo "${label_data}" \
config_data=('codesign:false' 'notarize:false' 'package:false' 'config:RelWithDebInfo')
if gh pr view ${{ github.event.number }} --json labels \
| jq -e -r '.labels[] | select(.name == "Seeking Testers")' > /dev/null; then
config_data[0]='codesign:true'
config_data[2]='package:true'
fi
;;
push)
config_data=('codesign:true' 'notarize:false' 'package:true' 'config:RelWithDebInfo' 'annotate:false')
config_data=('codesign:true' 'notarize:false' 'package:true' 'config:RelWithDebInfo')
if [[ ${GITHUB_REF_NAME} =~ [0-9]+.[0-9]+.[0-9]+(-(rc|beta).+)? ]]; then
config_data[1]='notarize:true'
config_data[3]='config:Release'
fi
;;
workflow_dispatch)
config_data=('codesign:true' 'notarize:false' 'package:false' 'config:RelWithDebInfo' 'annotate:false')
config_data=('codesign:true' 'notarize:false' 'package:false' 'config:RelWithDebInfo')
;;
schedule)
config_data=('codesign:true' 'notarize:false' 'package:true' 'config:RelWithDebInfo' 'annotate:true')
config_data=('codesign:true' 'notarize:false' 'package:true' 'config:RelWithDebInfo')
;;
*) ;;
esac
Expand Down Expand Up @@ -155,14 +153,6 @@ jobs:
codesignUser: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
codesignPass: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}

- name: Annotate Build 🏷️
if: matrix.target == 'arm64' && fromJSON(needs.check-event.outputs.annotate)
uses: yuzutech/[email protected]
with:
repo-token: ${{ github.token }}
title: Clang Compiler
input: ${{ github.workspace }}/build_issues.json

- name: Upload Artifacts 📡
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
schedule:
- cron: 17 0 * * *
permissions:
contents: read
checks: write
contents: write
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
Expand Down Expand Up @@ -86,9 +85,6 @@ jobs:
uses: ./.github/workflows/build-project.yaml
needs: cache-cleanup
secrets: inherit
permissions:
contents: read
checks: write

upload-language-files:
name: Upload Language Files 🌐
Expand Down

0 comments on commit c51c117

Please sign in to comment.