Skip to content

Commit

Permalink
[ci] Fix macOS and try to remove unneeded deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Apr 28, 2024
1 parent 13068c3 commit c451e19
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,15 @@ jobs:
sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2
sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls
sudo apt-get update -qqy
sudo apt-get install -qqy ocaml-nox camlp5 opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build libstring-shellquote-perl libipc-system-simple-perl
sudo apt-get install -qqy opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev libstring-shellquote-perl libipc-system-simple-perl
- name: Install OCaml libraries
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
set -ex
opam init # --disable-sandboxing
opam init -c ${{ matrix.ocaml }}
opam update
opam switch create ${{ matrix.ocaml }}
opam pin add haxe . --no-action
opam install haxe --deps-only --assume-depexts
opam install . --deps-only --assume-depexts
opam list
ocamlopt -v
Expand Down Expand Up @@ -553,7 +551,9 @@ jobs:
run: |
set -ex
eval $(opam env)
make -s STATICLINK=1 haxe
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'"
export STATICLINK=1
make -s haxe
make -s haxelib
make -s package_unix package_installer_mac
ls -l out
Expand Down
4 changes: 3 additions & 1 deletion extra/github-actions/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
run: |
set -ex
eval $(opam env)
make -s STATICLINK=1 haxe
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'"
export STATICLINK=1
make -s haxe
make -s haxelib
make -s package_unix package_installer_mac
ls -l out
Expand Down
8 changes: 3 additions & 5 deletions extra/github-actions/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,15 @@ jobs:
sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2
sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls
sudo apt-get update -qqy
sudo apt-get install -qqy ocaml-nox camlp5 opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build libstring-shellquote-perl libipc-system-simple-perl
sudo apt-get install -qqy opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev libstring-shellquote-perl libipc-system-simple-perl
- name: Install OCaml libraries
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
set -ex
opam init # --disable-sandboxing
opam init -c ${{ matrix.ocaml }}
opam update
opam switch create ${{ matrix.ocaml }}
opam pin add haxe . --no-action
opam install haxe --deps-only --assume-depexts
opam install . --deps-only --assume-depexts
opam list
ocamlopt -v
Expand Down
2 changes: 0 additions & 2 deletions tests/Brewfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
brew "opam"
brew "ninja"
brew "cmake"
brew "pkg-config"
brew "libunistring"
brew "cpanminus"

0 comments on commit c451e19

Please sign in to comment.