Skip to content

Commit

Permalink
LIB_PARAMS is actually needed. Is libunistring actually needed to?
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Dec 22, 2023
1 parent e8ee252 commit 8ecff5c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,6 @@ jobs:
with:
submodules: recursive

# - name: Cache opam
# id: cache-opam
# uses: actions/cache@v3.0.11
# with:
# path: ~/.opam/
# key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

- name: Install Neko from S3
run: |
set -ex
Expand All @@ -621,7 +614,8 @@ jobs:

- name: Install dependencies
env:
# For compatibility with macOS 10.13
# These libraries are compiled from source and the statically linked
# This ensures maximum portability of the resulting compiler binary
ZLIB_VERSION: 1.3
MBEDTLS_VERSION: 2.28.5
PCRE2_VERSION: 10.42
Expand Down Expand Up @@ -656,7 +650,9 @@ jobs:
- name: Build Haxe
run: |
set -ex
opam exec -- make -s STATICLINK=1 haxe
export STATICLINK=1
export "LIB_PARAMS=/usr/local/lib/libz.a /usr/local/lib/libpcre2-8.a /usr/local/lib/libmbedtls.a /usr/local/lib/libmbedcrypto.a /usr/local/lib/libmbedx509.a -cclib '-framework Security -framework CoreFoundation'"
opam exec -- make -s haxe
opam exec -- make -s haxelib
make -s package_unix package_installer_mac
otool -L ./haxe
Expand Down
7 changes: 5 additions & 2 deletions extra/github-actions/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

- name: Install dependencies
env:
# For compatibility with macOS 10.13
# These libraries are compiled from source and the statically linked
# This ensures maximum portability of the resulting compiler binary
ZLIB_VERSION: 1.3
MBEDTLS_VERSION: 2.28.5
PCRE2_VERSION: 10.42
Expand Down Expand Up @@ -41,7 +42,9 @@
- name: Build Haxe
run: |
set -ex
opam exec -- make -s STATICLINK=1 haxe
export STATICLINK=1
export "LIB_PARAMS=/usr/local/lib/libz.a /usr/local/lib/libpcre2-8.a /usr/local/lib/libmbedtls.a /usr/local/lib/libmbedcrypto.a /usr/local/lib/libmbedx509.a -cclib '-framework Security -framework CoreFoundation'"
opam exec -- make -s haxe
opam exec -- make -s haxelib
make -s package_unix package_installer_mac
otool -L ./haxe
Expand Down
7 changes: 0 additions & 7 deletions extra/github-actions/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,6 @@ jobs:
with:
submodules: recursive

# - name: Cache opam
# id: cache-opam
# uses: actions/cache@v3.0.11
# with:
# path: ~/.opam/
# key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

@import install-neko-unix.yml
@import build-mac.yml

Expand Down
3 changes: 1 addition & 2 deletions tests/Brewfile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
brew "cpanminus"
brew "libunistring"
brew "cpanminus"

0 comments on commit 8ecff5c

Please sign in to comment.