Skip to content

Commit

Permalink
Modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Jul 21, 2023
1 parent 8f1ea40 commit ac74309
Show file tree
Hide file tree
Showing 22 changed files with 223 additions and 231 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: build-and-test
on:
pull_request:
push:
branches-ignore:
- gh-pages
branches:
- main

jobs:
build:
Expand All @@ -13,8 +13,11 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 5.0.0
- 4.12.0
- 4.x
- 5.x

runs-on: ${{ matrix.os }}

Expand All @@ -28,7 +31,10 @@ jobs:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install dependencies
run: opam pin . --with-doc --with-test --yes
run: opam install . --deps-only --with-test

- name: Build and test
run: ./script/ci
- name: Build
run: opam exec -- dune build

- name: Test
run: opam exec -- dune runtest
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
_build
_opam
14 changes: 3 additions & 11 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
version=0.24.1
profile = default
version = 0.25.1

module-item-spacing=compact

space-around-arrays=false
space-around-lists=false
space-around-records=false
space-around-variants=false

cases-exp-indent=2

exp-grouping=preserve
exp-grouping = preserve
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Release notes

All notable changes to this project will be documented in this file.

## 1.0.0

- Initial release (@polytypic)
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# Low-level multicore utilities for OCaml
[API reference](https://ocaml-multicore.github.io/multicore-magic/doc/multicore-magic/Multicore_magic/index.html)

# **multicore-magic** — Low-level multicore utilities for OCaml

This is a library of magic multicore utilities intended for experts for
extracting the best possible performance from multicore OCaml.

Hopefully future releases of multicore OCaml will make this library obsolete!

See
[the reference manual](https://ocaml-multicore.github.io/multicore-magic/multicore-magic/Multicore_magic/index.html)
or the [Multicore_magic.mli](src/main/Multicore_magic.mli) signature for the
API.
## Development

### Formatting

This project uses [ocamlformat](https://github.com/ocaml-ppx/ocamlformat) (for
OCaml) and [prettier](https://prettier.io/) (for Markdown).

### To make a new release

1. Update [CHANGES.md](CHANGES.md).
2. Run `dune-release tag VERSION` to create a tag for the new `VERSION`.
3. Run `dune-release` to publish the new `VERSION`.
4. Run `./update-gh-pages-for-tag VERSION` to update the online documentation.
Empty file removed docs/.gitignore
Empty file.
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(dirs src)
(dirs src test)
13 changes: 13 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
(lang dune 3.3)
(name multicore-magic)
(generate_opam_files true)
(source (github ocaml-multicore/multicore-magic))
(authors "Vesa Karvonen <[email protected]>")
(maintainers "Vesa Karvonen <[email protected]>")
(homepage "https://github.com/ocaml-multicore/multicore-magic")
(license ISC)
(package (name multicore-magic)
(synopsis "Low-level multicore utilities for OCaml")
(depends
(ocaml (>= 4.12.0))
(alcotest (and (>= 1.7.0) :with-test))
(odoc (and (>= 2.2.0) :with-doc))))
31 changes: 22 additions & 9 deletions multicore-magic.opam
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.0.0"
synopsis: "Low-level multicore utilities for OCaml"
maintainer: "Vesa Karvonen <[email protected]>"
authors: "Vesa Karvonen"
maintainer: ["Vesa Karvonen <[email protected]>"]
authors: ["Vesa Karvonen <[email protected]>"]
license: "ISC"
homepage: "https://github.com/ocaml-multicore/multicore-magic"
bug-reports: "https://github.com/ocaml-multicore/multicore-magic/issues"
dev-repo: "git+https://github.com/ocaml-multicore/multicore-magic.git"
depends: [
"dune" {>= "3.3.0"}
"ocaml" {>= "5.0.0"}
"ocamlformat" {= "0.24.1" & with-test}
"odoc" {>= "2.1.1" & with-doc}
"dune" {>= "3.3"}
"ocaml" {>= "4.12.0"}
"alcotest" {>= "1.7.0" & with-test}
"odoc" {>= "2.2.0" & with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
build: ["dune" "build" "-p" name "-j" jobs]
dev-repo: "git+https://github.com/ocaml-multicore/multicore-magic.git"
49 changes: 0 additions & 49 deletions script/ci

This file was deleted.

15 changes: 0 additions & 15 deletions script/common

This file was deleted.

41 changes: 0 additions & 41 deletions script/publish-gh-pages

This file was deleted.

21 changes: 0 additions & 21 deletions script/watch

This file was deleted.

16 changes: 0 additions & 16 deletions script/watch-test

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
53 changes: 0 additions & 53 deletions src/test/Multicore_magic_test.ml

This file was deleted.

3 changes: 0 additions & 3 deletions src/test/dune

This file was deleted.

Loading

0 comments on commit ac74309

Please sign in to comment.