mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
ci: fix mac & Windows build (#5232)
* core: 6.2.0.1 (simplexmq 6.2.0.4) * action: fix mac build * fix Windows * version * revert version change --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
parent
2f0fe50f88
commit
bda84b08a1
3 changed files with 6 additions and 6 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -150,9 +150,9 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/v') && matrix.asset_name && matrix.os == 'ubuntu-20.04'
|
if: startsWith(github.ref, 'refs/tags/v') && matrix.asset_name && matrix.os == 'ubuntu-20.04'
|
||||||
run: sudo apt install -y desktop-file-utils
|
run: sudo apt install -y desktop-file-utils
|
||||||
|
|
||||||
- name: Install pkg-config for Mac
|
- name: Install openssl for Mac
|
||||||
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
|
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
|
||||||
run: brew install pkg-config
|
run: brew install openssl@3.0
|
||||||
|
|
||||||
- name: Unix prepare cabal.project.local for Ubuntu
|
- name: Unix prepare cabal.project.local for Ubuntu
|
||||||
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
|
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
|
||||||
|
@ -334,7 +334,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export PATH=$PATH:/c/ghcup/bin:$(echo /c/tools/ghc-*/bin || echo)
|
export PATH=$PATH:/c/ghcup/bin:$(echo /c/tools/ghc-*/bin || echo)
|
||||||
scripts/desktop/prepare-openssl-windows.sh
|
scripts/desktop/prepare-openssl-windows.sh
|
||||||
openssl_windows_style_path=$(echo `pwd`/dist-newstyle/openssl-1.1.1w | sed 's#/\([a-zA-Z]\)#\1:#' | sed 's#/#\\#g')
|
openssl_windows_style_path=$(echo `pwd`/dist-newstyle/openssl-3.0.15 | sed 's#/\([a-zA-Z]\)#\1:#' | sed 's#/#\\#g')
|
||||||
rm cabal.project.local 2>/dev/null || true
|
rm cabal.project.local 2>/dev/null || true
|
||||||
echo "ignore-project: False" >> cabal.project.local
|
echo "ignore-project: False" >> cabal.project.local
|
||||||
echo "package direct-sqlcipher" >> cabal.project.local
|
echo "package direct-sqlcipher" >> cabal.project.local
|
||||||
|
|
|
@ -47,7 +47,7 @@ echo " flags: +openssl" >> cabal.project.local
|
||||||
echo " extra-include-dirs: $openssl_windows_style_path\include" >> cabal.project.local
|
echo " extra-include-dirs: $openssl_windows_style_path\include" >> cabal.project.local
|
||||||
echo " extra-lib-dirs: $openssl_windows_style_path" >> cabal.project.local
|
echo " extra-lib-dirs: $openssl_windows_style_path" >> cabal.project.local
|
||||||
echo "package simplex-chat" >> cabal.project.local
|
echo "package simplex-chat" >> cabal.project.local
|
||||||
echo " ghc-options: -shared -threaded -optl-L$openssl_windows_style_path -optl-lcrypto-1_1-x64 -o libsimplex.dll libsimplex.dll.def" >> cabal.project.local
|
echo " ghc-options: -shared -threaded -optl-L$openssl_windows_style_path -optl-lcrypto-3-x64 -o libsimplex.dll libsimplex.dll.def" >> cabal.project.local
|
||||||
# Very important! Without it the build fails on linking step since the linker can't find exported symbols.
|
# Very important! Without it the build fails on linking step since the linker can't find exported symbols.
|
||||||
# It looks like GHC bug because with such random path the build ends successfully
|
# It looks like GHC bug because with such random path the build ends successfully
|
||||||
sed -i "s/ld.lld.exe/abracadabra.exe/" `ghc --print-libdir`/settings
|
sed -i "s/ld.lld.exe/abracadabra.exe/" `ghc --print-libdir`/settings
|
||||||
|
@ -57,7 +57,7 @@ rm -rf apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
||||||
rm -rf apps/multiplatform/desktop/build/cmake
|
rm -rf apps/multiplatform/desktop/build/cmake
|
||||||
|
|
||||||
mkdir -p apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
mkdir -p apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
||||||
cp dist-newstyle/openssl-3.0.15/libcrypto-1_1-x64.dll apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
cp dist-newstyle/openssl-3.0.15/libcrypto-3-x64.dll apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
||||||
cp libsimplex.dll apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
cp libsimplex.dll apps/multiplatform/common/src/commonMain/cpp/desktop/libs/$OS-$ARCH/
|
||||||
|
|
||||||
scripts/desktop/prepare-vlc-windows.sh
|
scripts/desktop/prepare-vlc-windows.sh
|
||||||
|
|
|
@ -9,7 +9,7 @@ root_dir="$(dirname "$(dirname "$(readlink "$0")")")"
|
||||||
|
|
||||||
cd $root_dir
|
cd $root_dir
|
||||||
|
|
||||||
if [ ! -f dist-newstyle/openssl-3.0.15/libcrypto-1_1-x64.dll ]; then
|
if [ ! -f dist-newstyle/openssl-3.0.15/libcrypto-3-x64.dll ]; then
|
||||||
mkdir dist-newstyle 2>/dev/null || true
|
mkdir dist-newstyle 2>/dev/null || true
|
||||||
cd dist-newstyle
|
cd dist-newstyle
|
||||||
curl --tlsv1.2 https://www.openssl.org/source/openssl-3.0.15.tar.gz -L -o openssl.tar.gz
|
curl --tlsv1.2 https://www.openssl.org/source/openssl-3.0.15.tar.gz -L -o openssl.tar.gz
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue