Improve ci.yml #1333
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
name: Karabiner-Elements CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Call xcode-select explicitly to avoid the following error. | |
# | |
# ``` | |
# xcrun: error: unable to lookup item 'SDKVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' | |
#``` | |
- name: xcode-select | |
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app | |
- name: brew install | |
run: brew install xcodegen | |
- name: package | |
run: make package | |
- name: appendix | |
run: ruby scripts/reduce-logs.rb 'make -C appendix' | |
- name: tests | |
run: ruby scripts/reduce-logs.rb 'make -C tests' |