Skip to content

Commit

Permalink
Merge pull request #46 from dinosaure/prepare-v0.0.5
Browse files Browse the repository at this point in the history
Prepare v0.0.5
  • Loading branch information
dinosaure committed Dec 22, 2023
2 parents 62e5b21 + 280ca6b commit 3d29894
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ jobs:
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
allow-prerelease-opam: true
# See jart/cosmopolitan#3
- name: Fix binfmt and Cosmopolitan
run: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
- name: Pinning packages
run: opam pin add -t -yn -vvv --kind=path .
run: opam pin add -t -yn -vvv --kind=path --with-version=dev .
- name: Install cosmopolitan/esperanto and dune
run: opam depext -iyt -v esperanto-cosmopolitan x86_64-esperanto aarch64-esperanto dune
- name: Compiling example project (cat.com)
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.0.5 (2024-12-21) Paris - France

- Support Cosmopolitan 3.1 (#43, @dinosaure)
- Fix the compilation of esperanto with setup-ocaml and GitHub CI (#44, @dinosaure)
- Extend the support of Esperanto to 4.13 (#45, @dinosaure)

## v0.0.4 (2023-05-25) Paris - France

- Fix the compilation of `threads.cmxa` (@dinosaure, #38)
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion opam/aarch64-esperanto.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ build: [
["sh" "-c" "make -C caml -j%{jobs}%"]
]
install: ["sh" "-c" "make -C caml install" ]
available: opam-version >= "2.1.0"
depends: [
"conf-which" {build}
"ocaml-src" {build}
"esperanto-cosmopolitan" {build}
"esperanto-cosmopolitan" {= version & build}
"ocaml" {>= "4.13.0" & < "4.15.0"}
]
synopsis: "An OCaml compiler with Cosmopolitan"
Expand Down
7 changes: 4 additions & 3 deletions opam/esperanto-cosmopolitan.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ install: [
[ make "-C" "toolchain" "PREFIX=%{prefix}%" "install" ]
]
depends: [
"ocaml" {>= "4.13.0"}
"dune"
"decompress"
"decompress" {>= "1.5.3"}
"checkseum"
"digestif"
"digestif" {>= "1.0.0"}
# "conf-binutils"
]
synopsis: "Cosmopolitan toolchain for OCaml compiler"
description: "A little toolchain for OCaml with Cosmopolitan"
available: [ arch = "x86_64" & (os = "linux" | os = "freebsd" | os = "openbsd") ]
available: [ opam-version >= "2.1.0" & arch = "x86_64" & (os = "linux" | os = "freebsd" | os = "openbsd") ]
3 changes: 2 additions & 1 deletion opam/x86_64-esperanto.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ build: [
["sh" "-c" "make -C caml -j%{jobs}%"]
]
install: ["sh" "-c" "make -C caml install" ]
available: opam-version >= "2.1.0"
depends: [
"conf-which" {build}
"ocaml-src" {build}
"esperanto-cosmopolitan" {build}
"esperanto-cosmopolitan" {= version & build}
"ocaml" {>= "4.13.0" & < "4.15.0"}
]
synopsis: "An OCaml compiler with Cosmopolitan"
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ url {
}
EOM

for PACKAGE in 'esperanto-cosmopolitan' 'esperanto'; do
for PACKAGE in 'esperanto-cosmopolitan' 'x86_64-esperanto' 'aarch64-esperanto'; do
PKG_DIR=${OUTPUT_DIR}/packages/${PACKAGE}/${PACKAGE}.${OPAM_VERSION}
mkdir -p ${PKG_DIR} || exit 1
cat opam/${PACKAGE}.opam ${OUTPUT_DIR}/tmp/url \
Expand Down
4 changes: 0 additions & 4 deletions toolchain/install.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ type action =
| Copy of { exec : bool; src : string; dst : string }
| Link of { src : string; dst : string }

let pp_lnk ppf = function
| Link { src; dst } -> Format.fprintf ppf "(Link (src:%S, dst:%S))" src dst
| _ -> ()

let deps lnks =
let tbl = Hashtbl.create 0x100 in
let g = Hashtbl.create 0x100 in
Expand Down

0 comments on commit 3d29894

Please sign in to comment.