Skip to content

Commit

Permalink
ci: Update macos version for macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed Jun 18, 2023
1 parent 631c663 commit 6a69b1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 102 deletions.
98 changes: 0 additions & 98 deletions .github/workflows/_release-x86_64-apple-darwin.yml

This file was deleted.

16 changes: 12 additions & 4 deletions .github/workflows/release-x86_64-apple-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
release:
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v2

Expand All @@ -38,28 +38,36 @@ jobs:
run: brew update

- name: Install LLVM 12
run: brew install llvm@12
run: brew install llvm-hs/llvm/llvm-12
# run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE brew install llvm-hs/llvm/llvm-12

- name: Fix libffi
run: ln -s /usr/local/opt/libffi/lib/libffi.dylib /usr/local/opt/libffi/lib/libffi.7.dylib

# - name: Fix llvm install
# run: cd /usr/local/Cellar/llvm-9/9.0.1/bin/ && ln -s llvm-config-9 llvm-config || cd /usr/local/Cellar/llvm-9/9.0.1.reinstall/bin/ && ln -s llvm-config-9 llvm-config

- name: Install alex and happy
run: stack install alex happy

- name: Build madlib executable
run: stack build

# - name: Build madlib executable
# run: |
# export PATH="$PATH:/usr/local/Cellar/llvm-9/9.0.1/bin:/usr/local/Cellar/llvm-9/9.0.1.reinstall/bin"
# stack build

- name: Add rpath
run: install_name_tool -change /usr/local/opt/llvm/lib/llvm/lib/libc++.1.0.dylib /usr/lib/libc++.1.dylib "$(stack path --dist-dir)/build/madlib/madlib"
run: install_name_tool -change /usr/local/opt/llvm-12/lib/llvm-12/lib/libc++.1.0.dylib /usr/lib/libc++.1.dylib "$(stack path --dist-dir)/build/madlib/madlib"

- name: Install automake
run: brew install autoconf automake nasm libtool perl

- name: Build runtime
run: |
TARGET="MACOS_X64" ./scripts/build-runtime-libs
TARGET="MACOS_X64" AR="llvm-ar" ./scripts/build-runtime
TARGET="MACOS_X64" AR="llvm-ar-12" ./scripts/build-runtime
- name: Build tools
run: ./scripts/build
Expand Down

0 comments on commit 6a69b1e

Please sign in to comment.