-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update OSX builds to llvm clang (#5822)
* Update to brew clang++ * add osx build * astyle format * update docs for brew-clang-osx give it a section to show how to install and explicitly build with brew's clang instead of apple clang. * style(autofix.ci): automated formatting * fight the autoformatter * style(autofix.ci): automated formatting * use official sol fix use fix from ThePhD/sol2@d805d02 at ThePhD/sol2#1617 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e8f7d2c
commit 8fdbce2
Showing
5 changed files
with
121 additions
and
7 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
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,96 @@ | ||
name: "Cataclysm OSX Manual Build" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "build-data/osx/**" | ||
- "doc/**" | ||
- "doxygen_doc/**" | ||
- "gfx/**" | ||
- "lang/**" | ||
- "lgtm/**" | ||
- "tools/**" | ||
- "!tools/format/**" | ||
- "utilities/**" | ||
- 'scripts/**' | ||
|
||
# We only care about the latest revision of a PR, so cancel previous instances. | ||
concurrency: | ||
group: osx-build-${{ github.event.pull_request.number || github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_catatclysm: | ||
if: github.event.pull_request.draft == false | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: osx-curses-x64 | ||
os: macos-14 | ||
mxe: none | ||
tiles: 0 | ||
artifact: osx-curses-x64 | ||
ext: dmg | ||
content: application/x-apple-diskimage | ||
- name: osx-tiles-x64 | ||
os: macos-14 | ||
mxe: none | ||
tiles: 1 | ||
artifact: osx-tiles-x64 | ||
ext: dmg | ||
content: application/x-apple-diskimage | ||
- name: osx-curses-arm | ||
os: macos-14 | ||
mxe: none | ||
tiles: 0 | ||
artifact: osx-curses-arm | ||
ext: dmg | ||
content: application/x-apple-diskimage | ||
- name: osx-tiles-arm | ||
os: macos-14 | ||
mxe: none | ||
tiles: 1 | ||
artifact: osx-tiles-arm | ||
ext: dmg | ||
content: application/x-apple-diskimage | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
ZSTD_CLEVEL: 17 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install runtime dependencies | ||
uses: BrettDong/setup-sdl2-frameworks@v1 | ||
with: | ||
sdl2: latest | ||
sdl2-ttf: latest | ||
sdl2-image: latest | ||
sdl2-mixer: latest | ||
|
||
- name: Install build dependencies | ||
run: | | ||
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel llvm astyle | ||
python3 -m venv ./venv | ||
source ./venv/bin/activate | ||
pip3 install mac_alias==2.2.0 dmgbuild==1.6.1 biplist polib luaparser | ||
- name: Check Clang OK | ||
run: | | ||
echo "Clang++ version:" | ||
$(brew --prefix llvm)/bin/clang++ --version # Ensure clang++ is installed and working | ||
- name: Build | ||
run: | | ||
source ./venv/bin/activate | ||
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} LUA=1 RELEASE=1 LANGUAGES=all USE_HOME_DIR=1 OSX_MIN=11 PCH=0 COMPILER=$(brew --prefix llvm)/bin/clang++ dmgdist |
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