forked from Hammerspoon/hammerspoon
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hammerspoon: update CI to work on current GitHub runners
- Loading branch information
Showing
2 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
name: Build LES for macOS | ||
|
||
name: Build | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-11 | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer | ||
steps: | ||
- name: Cloning Git repository | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Prepare build environment | ||
run: ./scripts/github-ci-pre.sh | ||
- name: Setup Cocoapods | ||
uses: maxim-lobanov/setup-cocoapods@v1 | ||
with: | ||
podfile-path: Podfile.lock | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
- name: Install dependencies | ||
run: | | ||
brew install coreutils jq xcbeautify gawk gh gpg | ||
pip3 install --user --disable-pip-version-check -r requirements.txt | ||
gem install --user t | ||
gem install trainer | ||
- name: Attempt to build the Live Enhancement Suite for macOS | ||
shell: bash | ||
run: | | ||
xcodebuild -workspace Hammerspoon.xcworkspace -scheme Hammerspoon -configuration Debug clean build | tee $(date +%s).log | xcbeautify | ||
export LOG_NAME="build_$(date +%s).log" | ||
export XCODE_ARGS="clean build" | ||
export XCODE_ARGS="${XCODE_ARGS} GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO GCC_TREAT_WARNINGS_AS_ERRORS=NO CLANG_ENABLE_CODE_COVERAGE=NO" | ||
export XCODE_ARGS="${XCODE_ARGS} -enableAddressSanitizer NO -enableThreadSanitizer NO -enableUndefinedBehaviorSanitizer NO" | ||
export XCODE_ARGS="${XCODE_ARGS} SDKROOT=${DEVELOPER_DIR}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk" | ||
export XCODE_ARGS="${XCODE_ARGS} MACOSX_DEPLOYMENT_TARGET=11.0" | ||
xcodebuild -workspace Hammerspoon.xcworkspace -scheme Release -configuration Release ${XCODE_ARGS} | \ | ||
tee ${LOG_NAME} | \ | ||
xcbeautify && exit ${PIPESTATUS[0]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters