Skip to content

Commit bfce9ac

Browse files
committed
move to github actions
1 parent c1bb552 commit bfce9ac

File tree

3 files changed

+69
-23
lines changed

3 files changed

+69
-23
lines changed

.github/workflows/main.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
5+
push:
6+
branches: [ master ]
7+
8+
pull_request:
9+
branches: [ master ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
16+
build-test:
17+
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, macos-latest]
21+
mlcomp: [mlkit, mlton]
22+
23+
runs-on: ${{ matrix.os }}
24+
25+
steps:
26+
27+
- uses: actions/checkout@v2
28+
29+
- name: Setup environment
30+
run: |
31+
echo "OS=$(uname -s | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
32+
echo "RUNHOME=$(echo $HOME)" >> $GITHUB_ENV
33+
34+
- name: Install MLKit and smlpkg
35+
working-directory: ${{ env.RUNHOME }}
36+
run: |
37+
echo "[OS: $OS, HOME: $RUNHOME]"
38+
wget https://github.com/diku-dk/smlpkg/releases/download/v0.1.4/smlpkg-bin-dist-${{env.OS}}.tgz
39+
tar xzf smlpkg-bin-dist-${{env.OS}}.tgz
40+
echo "$HOME/smlpkg-bin-dist-${{env.OS}}/bin" >> $GITHUB_PATH
41+
wget https://github.com/melsman/mlkit/releases/download/v4.5.4/mlkit-bin-dist-${{env.OS}}.tgz
42+
tar xzf mlkit-bin-dist-${{env.OS}}.tgz
43+
echo "$HOME/mlkit-bin-dist-${{env.OS}}/bin" >> $GITHUB_PATH
44+
mkdir -p .mlkit
45+
echo "SML_LIB $HOME/mlkit-bin-dist-${{env.OS}}/lib/mlkit" > .mlkit/mlb-path-map
46+
47+
- name: Check
48+
run: |
49+
mlkit --version
50+
smlpkg --version
51+
52+
- name: Install MLton (linux)
53+
if: ${{ env.OS == 'linux' && matrix.mlcomp == 'mlton' }}
54+
run: |
55+
sudo apt-get install -y mlton
56+
mlton
57+
58+
- name: Install MLton (macos)
59+
if: ${{ env.OS == 'darwin' && matrix.mlcomp == 'mlton' }}
60+
run: |
61+
brew install mlton
62+
mlton
63+
64+
- name: Build
65+
run: MLCOMP=${{ matrix.mlcomp }} make clean all
66+
67+
- name: Run tests
68+
run: MLCOMP=${{ matrix.mlcomp }} make test

.travis.yml

-22
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sml-uref [![Build Status](https://travis-ci.org/diku-dk/sml-uref.svg?branch=master)](https://travis-ci.org/diku-dk/sml-uref)
1+
# sml-uref [![CI](https://github.com/diku-dk/sml-uref/workflows/CI/badge.svg)](https://github.com/diku-dk/sml-uref/actions)
22

33
Standard ML package for unifiable references.
44

0 commit comments

Comments
 (0)