mirror of
https://github.com/open-simh/simh.git
synced 2026-02-09 01:41:16 +00:00
Github CI/CD updates
- Nuke and reinstall HomeBrew for macOS builds. Gets around the whole problem of stale links and conflicting packages installed in the GitHub macOS images. - macOS 12 and Ubuntu 20.04 officially deprecated. Ubuntu 20.04 will be removed from GitHub's runner images on 01 APR 2025. - .travis/deps.sh: Add mingw32 as a dependency target, enable MinGW64 32-bit builds. - Work around LTO bug on Ubuntu and macOS compilers, where LTO appears to miscalculate the number of bytes stored when using the default byte swapping 'for' loop. This is a workaround that uses compiler swapping intrinsics for well known sizes that appeases LTO. The alternative is to wait for a compiler fix, which is infeasible.
This commit is contained in:
committed by
Paul Koning
parent
6fd146ae66
commit
7adffe5794
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -40,25 +40,22 @@ jobs:
|
||||
- scelbi 3b2 i701 i704 i7010 i7070 i7080 i7090 sigma uc15 i650 sel32 intel-mds ibm1130
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
## Workaround for remnant symlinks in /usr/local pointing back to
|
||||
## macOS frameworks.
|
||||
##
|
||||
## Future: Will have to keep an eye on SDL_ttf's Python dependency
|
||||
## so that the correct/appropriate Python version is removed.
|
||||
- name: Remnant symlink cleanup (macOS)
|
||||
|
||||
## Nuke homebrew and start with a clean instance:
|
||||
- name: Reinstall HomeBrew (macOS)
|
||||
if: ${{runner.os == 'macOS'}}
|
||||
run: |
|
||||
brew unlink python@3 || true
|
||||
brew uninstall --ignore-dependencies python@3 || true
|
||||
brew unlink python@3.12 || true
|
||||
brew uninstall --ignore-dependencies python@3.12 || true
|
||||
for f in $(find /usr/local/bin -type l -print); do \
|
||||
(readlink $f | grep -q -s "/Library") && echo Removing "$f" && rm -f "$f"; \
|
||||
done || exit 0
|
||||
/usr/bin/sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
|
||||
[ -d /opt/homebrew ] && ( sudo rm -rf /opt/homebrew/* || true )
|
||||
[ -d /usr/local ] && ( sudo rm -rf /usr/local/* || true )
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
|
||||
## Install our regular dependencies.
|
||||
- name: Install dependencies (macOS)
|
||||
if: ${{runner.os == 'macOS'}}
|
||||
run: sh -ex .travis/deps.sh osx
|
||||
run: |
|
||||
sh -ex .travis/deps.sh osx
|
||||
|
||||
- name: Install dependencies (Linux)
|
||||
if: ${{runner.os == 'Linux'}}
|
||||
run: sh -ex .travis/deps.sh linux
|
||||
|
||||
Reference in New Issue
Block a user