Skip to content
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

Newhoggy/debug macos openssl #5814

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 43 additions & 4 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
strategy:
fail-fast: false
matrix:
# If you edit these versions, make sure the version in the lonely macos-latest job below is updated accordingly
ghc: ["9.6.4", "9.8.1"]
cabal: ["3.10.2.1"]
os: [windows-latest, ubuntu-latest]
include:
# Using include, to make sure there will only be one macOS job, even if the matrix gets expanded later on.
# We want a single job, because macOS runners are scarce.
Expand Down Expand Up @@ -63,6 +59,24 @@ jobs:
f+${{ matrix.os }}
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}

- name: Install haskell (macos)
if: startsWith(matrix.os, 'macos')
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Install ghcup on macos
if: startsWith(matrix.os, 'macos')
shell: bash
run: |
GHCUP_DIR=$(dirname $(find "$HOME" -name ghcup -type f | head -n 1 | xargs) | xargs)
echo "GHCUP_DIR=$GHCUP_DIR" | tee -a $GITHUB_ENV
echo "PATH=$GHCUP_DIR:$PATH" | tee -a $GITHUB_ENV

- name: Ghcup version
run: ghcup --version

- name: Install Haskell
uses: input-output-hk/actions/haskell@latest
id: setup-haskell
Expand All @@ -75,6 +89,31 @@ jobs:
with:
use-sodium-vrf: true # default is true

- name: Install openssl-3.0.13 on macos
if: startsWith(matrix.os, 'macos')
run: |
brew update
brew install openssl@3.0
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3.0/lib/pkgconfig:$PKG_CONFIG_PATH"
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" | tee -a $GITHUB_ENV
pkg-config --libs openssl

- name: "Re-install openssl on Windows"
if: runner.os == 'Windows'
shell: C:/msys64/usr/bin/bash.exe -e '{0}'
env:
MSYSTEM: MINGW64
# do not ever change to $HOME by yourself.
CHERE_INVOKING: 1
# do we want to inherit the path?
# MSYS2_PATH_TYPE: inherit
run: |
/usr/bin/pacman --noconfirm -R mingw-w64-x86_64-openssl

curl -O https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-openssl-3.2.1-1-any.pkg.tar.zst

/usr/bin/pacman --noconfirm -U mingw-w64-x86_64-openssl-3.2.1-1-any.pkg.tar.zst

- uses: actions/checkout@v4

- name: Cabal update
Expand Down