Skip to content

Commit 46af3c6

Browse files
committed
Remove musl build that needs debugging
1 parent f9f3270 commit 46af3c6

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

Diff for: .github/workflows/binary-releases.yml

+21-29
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
109
create-release:
1110
runs-on: ubuntu-latest
1211
outputs:
@@ -21,47 +20,46 @@ jobs:
2120
tag_name: ${{ github.run_number }}
2221
release_name: Release ${{ github.run_number }}
2322

24-
2523
macos-build:
2624
runs-on: macos-latest
2725
needs: create-release
2826

2927
steps:
30-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v2
3129

32-
- name: Opam modules cache
33-
uses: actions/cache@v1
34-
env:
30+
- name: Opam modules cache
31+
uses: actions/cache@v1
32+
env:
3533
cache-name: cache-opam-modules
36-
with:
34+
with:
3735
path: ~/.opam
3836
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('mlang.opam', 'Makefile') }}
3937
restore-keys: |
4038
${{ runner.os }}-build-${{ env.cache-name }}-
4139
${{ runner.os }}-build-
4240
${{ runner.os }}-
4341
44-
- name: Set up OCaml
45-
uses: ocaml/setup-ocaml@v2
46-
with:
42+
- name: Set up OCaml
43+
uses: ocaml/setup-ocaml@v2
44+
with:
4745
ocaml-compiler: 4.11.2
4846

49-
- name: Install dependencies
50-
run: |
51-
brew install gmp mpfr
52-
opam update
53-
make init-without-switch
47+
- name: Install dependencies
48+
run: |
49+
brew install gmp mpfr
50+
opam update
51+
make init-without-switch
5452
55-
- name: Make mlang binary
56-
run: |
53+
- name: Make mlang binary
54+
run: |
5755
eval $(opam env)
5856
make build
5957
60-
- name: Upload release asset
61-
uses: actions/upload-release-asset@v1
62-
env:
58+
- name: Upload release asset
59+
uses: actions/upload-release-asset@v1
60+
env:
6361
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
with:
62+
with:
6563
upload_url: ${{ needs.create-release.outputs.upload_url }}
6664
asset_path: ./_build/default/src/main.exe
6765
asset_name: mlang-macos-v${{ github.run_number }}.exe
@@ -101,16 +99,10 @@ jobs:
10199
- name: Install dependencies
102100
run: |
103101
sudo apt update
104-
sudo apt install m4 perl python3 clang git build-essential lzip
105-
# We pull GMP and MPFR from their sources and build them with MUSL
106-
# in order to get a static.
107-
wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.lz && tar xaf gmp-6.2.1.tar.lz
108-
( cd gmp-6.2.1; CC=musl-gcc ./configure --prefix /tmp/gmp-prefix && make && make install )
109-
wget https://www.mpfr.org/mpfr-4.1.0/mpfr-4.1.0.tar.xz && tar xaf mpfr-4.1.0.tar.xz
110-
( cd mpfr-4.1.0; CC=musl-gcc ./configure --prefix /tmp/gmp-prefix -with-gmp=/tmp/gmp-prefix && make && make install )
102+
sudo apt install m4 perl python3 clang git build-essential lzip libgmp-dev libmpfr-dev
111103
eval $(opam env)
112104
opam update
113-
CPPFLAGS=-I/tmp/gmp-prefix/include LDFLAGS=-L/tmp/gmp-prefix/lib make init-without-switch
105+
make init-without-switch
114106
115107
- name: Make mlang binary
116108
run: |

0 commit comments

Comments
 (0)