Skip to content

Commit

Permalink
ci: fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Apr 28, 2024
1 parent 7efea29 commit a119861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install package dependencies
if: startsWith( matrix.os, 'ubuntu' )
Expand All @@ -33,7 +33,7 @@ jobs:
brew install cmake pkg-config fmt spdlog nlohmann-json grpc
echo "PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl@1.1/lib/pkgconfig" >> $GITHUB_ENV
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
Expand Down
8 changes: 1 addition & 7 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,7 @@ def is_preload_disabled():
if is_windows:
return True
elif sys.platform == 'darwin':
command = ['csrutil', 'status']
pattern = re.compile(r'System Integrity Protection status:\s+enabled')
try:
output = subprocess.check_output(command, stderr=subprocess.STDOUT)
return any(pattern.match(line) for line in output.decode('utf-8').splitlines())
except (OSError, subprocess.CalledProcessError):
return False
return True
else:
return False

Expand Down

0 comments on commit a119861

Please sign in to comment.