mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 03:05:29 -05:00
move to github ci
This commit is contained in:
parent
28bff9b530
commit
670d8b09f3
5 changed files with 34 additions and 38 deletions
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: build
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
run:
|
||||
name: Build
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
ocaml: [ '4.08.0', '4.03.0', '4.11.0' ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: avsm/setup-ocaml@v1
|
||||
with:
|
||||
ocaml-version: ${{ matrix.ocaml }}
|
||||
- name: cache opam
|
||||
id: cache-opam
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: _opam
|
||||
key: opam-${{matrix.operating-system}}-${{matrix.ocaml-version}}
|
||||
- run: opam pin -n .
|
||||
if: steps.cache-opam.outputs.cache-hit != 'true'
|
||||
- run: opam depext -yt iter
|
||||
if: steps.cache-opam.outputs.cache-hit != 'true'
|
||||
- run: opam install -t . --deps-only
|
||||
if: ${{ matrix.os != 'windows-latest' }} and ${{ steps.cache-opam.outputs.cache-hit != 'true' }}
|
||||
- run: opam install . --deps-only # no test deps
|
||||
if: ${{ matrix.os == 'windows-latest' }} and ${{ steps.cache-opam.outputs.cache-hit != 'true' }}
|
||||
- run: opam exec -- dune build
|
||||
- run: opam exec -- dune runtest
|
||||
if: ${{ matrix.os != 'windows-latest' }}
|
||||
16
.travis.yml
16
.travis.yml
|
|
@ -1,16 +0,0 @@
|
|||
language: c
|
||||
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh
|
||||
script: bash -ex .travis-docker.sh
|
||||
services:
|
||||
- docker
|
||||
env:
|
||||
global:
|
||||
- PINS="iter:."
|
||||
- DISTRO="ubuntu-16.04"
|
||||
matrix:
|
||||
- PACKAGE="iter" OCAML_VERSION="4.02.3" EXTRA_DEPS="base-bigarray" TESTS=false
|
||||
- PACKAGE="iter" OCAML_VERSION="4.03" EXTRA_DEPS="base-bigarray"
|
||||
- PACKAGE="iter" OCAML_VERSION="4.04" EXTRA_DEPS="base-bigarray"
|
||||
#- PACKAGE="iter" OCAML_VERSION="4.05" EXTRA_DEPS="base-bigarray"
|
||||
- PACKAGE="iter" OCAML_VERSION="4.06" EXTRA_DEPS="base-bigarray"
|
||||
- PACKAGE="iter" OCAML_VERSION="4.07" EXTRA_DEPS="base-bigarray"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Iter [](https://travis-ci.org/c-cube/iter) [][doc]
|
||||
# Iter 
|
||||
|
||||
Clean and efficient loop fusion for all your iterating needs!
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ build: [
|
|||
depends: [
|
||||
"base-bytes"
|
||||
"result"
|
||||
"ocaml" { >= "4.03.0" }
|
||||
"dune" { >= "1.1" }
|
||||
"dune-configurator"
|
||||
"qcheck" {with-test}
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
opam-version: "2.0"
|
||||
name: "sequence"
|
||||
version: "1.1"
|
||||
author: "Simon Cruanes"
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
license: "BSD-2-clauses"
|
||||
synopsis: "Compatibility package for `iter`"
|
||||
build: [
|
||||
["dune" "build" "@install" "-p" name "-j" jobs]
|
||||
]
|
||||
depends: [
|
||||
"iter"
|
||||
]
|
||||
tags: [ "sequence" "iterator" "iter" "fold" ]
|
||||
homepage: "https://github.com/c-cube/iter/"
|
||||
depopts: [
|
||||
"base-bigarray"
|
||||
]
|
||||
doc: "https://c-cube.github.io/iter/"
|
||||
bug-reports: "https://github.com/c-cube/iter/issues"
|
||||
dev-repo: "git+https://github.com/c-cube/iter.git"
|
||||
Loading…
Add table
Reference in a new issue