Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed Sep 1, 2024
1 parent 2cc1f81 commit d85e0db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ jobs:
- name: Install macOS dependencies
if: startsWith(matrix.os, 'macos-')
run: |
brew install bison boost libogg ninja pkg-config qt5
brew install bison boost gcc libogg ninja pkg-config qt5
brew link qt5 --force
echo "FC=gfortran-11" >> ${GITHUB_ENV}
echo "FC=/opt/homebrew/bin/gfortran" >> ${GITHUB_ENV}
echo "YACC=/opt/homebrew/opt/bison/bin/bison" >> ${GITHUB_ENV}
echo "CPATH=/opt/homebrew/include" >> ${GITHUB_ENV}
echo "LIBRARY_PATH=/opt/homebrew/lib" >> ${GITHUB_ENV}
Expand Down
9 changes: 7 additions & 2 deletions bfg9000/tools/msvc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ def _parse_brand(env, command, version_output):

@staticmethod
def check_command(env, command):
return env.execute(command + ['-?'], stdout=shell.Mode.pipe,
stderr=shell.Mode.stdout)
output = env.execute(command + ['-?'], stdout=shell.Mode.pipe,
stderr=shell.Mode.stdout)
# XXX: The `templight` tool exits with zero status even though it
# properly reports that it doesn't understand the "-?" option.
if 'error: unknown argument' in output:
raise shell.CalledProcessError(1, output)
return output

@property
def flavor(self):
Expand Down

0 comments on commit d85e0db

Please sign in to comment.