-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.9.x Build Troubleshooting Early December 2023 SGT #821
Closed
stephengtuggy
wants to merge
20
commits into
vegastrike:0.9.x
from
stephengtuggy:0.9.x_build_troubleshooting_2023-12_sgt
Closed
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2e832bf
pin Python version to 3.11 on Windows and Mac
stephengtuggy e86f7f4
python-version 3.12
stephengtuggy 45ea34d
macos-ci.yml: Don't continue-on-error any longer
stephengtuggy 723da01
Merge branch 'master' into 0.9.x_build_troubleshooting_2023-12_sgt
stephengtuggy d89d3ad
Set check-latest param of setup-python to true
stephengtuggy 30e2f66
macos-ci.yml: `brew install boost` explicitly
stephengtuggy 600232a
macos-ci.yml: Break out the `brew install`s some more
stephengtuggy e254674
macos-ci.yml: ...
stephengtuggy 05d3070
...
stephengtuggy 5917d60
...
stephengtuggy 0c2f336
...
stephengtuggy fcc85c5
...
stephengtuggy e11e991
...
stephengtuggy 7e1cd59
...
stephengtuggy 0891f53
...
stephengtuggy 28a61e8
...
stephengtuggy 355e04b
engine/objconv/mesher: Add a CMAKE_MINIMUM_REQUIRED clause
stephengtuggy af339e6
macos-ci.yml: Don't symlink openssl@3 in place of the Apple-provided …
stephengtuggy 04ae9f1
Merge branch 'master' into 0.9.x_build_troubleshooting_2023-12_sgt
stephengtuggy 9bc1359
Merge branch 'refs/heads/0.9.x' into 0.9.x_build_troubleshooting_2023…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
#==================================== | ||
# @file : brew-install-for-cmake.sh | ||
# @brief : installs a package with Homebrew, keg-only, then registers that package's | ||
# include, lib, bin, etc. directories for use by CMake | ||
# @usage : script/brew-install-for-cmake.sh <package> | ||
# @param : first, the brew formula name, optionally including a version suffix | ||
# second, a truthy value indicating whether or not to leave it linked | ||
#==================================== | ||
# Copyright (C) 2023 Stephen G. Tuggy and other Vega Strike contributors | ||
# | ||
# This file is part of Vega Strike. | ||
# | ||
# Vega Strike is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Vega Strike is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Vega Strike. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
set -e | ||
|
||
PACKAGE_SPEC="$1" | ||
LEAVE_LINKED="$2" | ||
|
||
export HOMEBREW_NO_AUTO_UPDATE=1 | ||
export HOMEBREW_NO_INSTALL_UPGRADE=1 | ||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||
|
||
if ! brew list "$PACKAGE_SPEC" &>/dev/null; then | ||
brew install "$PACKAGE_SPEC" | ||
if [ ! "$LEAVE_LINKED" ] ; then | ||
brew unlink "$PACKAGE_SPEC" | ||
fi | ||
fi | ||
PACKAGE_INSTALLED_PREFIX=$(brew --prefix "$PACKAGE_SPEC") | ||
PACKAGE_INSTALLED_BIN="$PACKAGE_INSTALLED_PREFIX/bin" | ||
#PACKAGE_INSTALLED_INCLUDE="$PACKAGE_INSTALLED_PREFIX/include" | ||
#PACKAGE_INSTALLED_LIB="$PACKAGE_INSTALLED_PREFIX/lib" | ||
export PATH="$PACKAGE_INSTALLED_BIN:$PATH" | ||
export CMAKE_PREFIX_PATH="$PACKAGE_INSTALLED_PREFIX:$CMAKE_PREFIX_PATH" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have some comments describing how to use this script and the meaning of the parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BenjamenMeyer Agreed. It would be good. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... To finish the thought: Can we delay adding the comments until a future PR? Or do they need to be added right now, in your opinion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, sounds good. I'll file a new issue for that documentation work