Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
melsman committed Nov 23, 2020
1 parent 2ef672e commit 3290af3
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
make -C test test_mlkit_no_gc
make -C test/explicit_regions all
- name: Configure SmltoJs
- name: Configure SmlToJs
run: |
./configure --with-compiler="SML_LIB=`pwd` `pwd`/bin/mlkit"
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
make -C test test_mlkit_no_gc
make -C test/explicit_regions all
- name: Configure SmltoJs
- name: Configure SmlToJs
run: |
./configure --with-compiler="SML_LIB=`pwd` `pwd`/bin/mlkit"
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build-test-release-ubuntu:
name: Build, test, and upload release binaries
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y gcc mlton autoconf make
- name: Configure
run: |
./autobuild
./configure
- name: Build MLKit
run: |
make mlkit
make mlkit_basislibs
- name: Install MLKit
run: |
sudo make install
- name: Run MLKit tests
run: |
make -C test_dev test
make -C test test_mlkit
make -C test test_mlkit_no_gc
make -C test/explicit_regions all
- name: Configure SmlToJs
run: |
./configure --with-compiler="SML_LIB=`pwd` `pwd`/bin/mlkit"
- name: Build SmlToJs
run: |
make smltojs
make smltojs_basislibs
- name: Install SmlToJs
run: |
sudo make install_smltojs
- name: Run SmlToJs tests
run: |
make -C js/test test
- name: Build binary distribution
run: |
make mlkit_bin_dist
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/mlkit_bin_dist.tgz
tag: ${{ github.ref }}
overwrite: true
12 changes: 0 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,3 @@ script:
- make -C test test_mlkit_no_gc
- make -C js/test test
- make -C test/explicit_regions all

deploy:
provider: releases
api_key:
secure: WHXjq7SeG9AjmW4M2Qst9unI0VoJ6zqD99Lg8XD921z2jn5YK/AEiEFwOnaMNhAEF5mW11d8U1wu8182R4K94by4jG2862sp/ZDo+BPKlyrd3Z/4/3t18VYgB5H+MRknVR4umv/bv81xzVA7sxEgnJpHuKbho8ZLV5a+pUcgZGw=
file: dist/mlkit_bin_dist.tgz
skip_cleanup: true
on:
repo: melsman/mlkit
tags: true
branch: master
condition: $TRAVIS_OS_NAME = "linux"
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ mlkit_bin_dist:
rm -rf dist/$(BIN_DIST)
$(MAKE) install0 DESTDIR=$(CWD)/dist/$(BIN_DIST) prefix=
$(MAKE) install_smltojs0 DESTDIR=$(CWD)/dist/$(BIN_DIST) prefix=
(cd dist && tar czvf $(BIN_DIST).tgz $(BIN_DIST))
(cd dist && tar czf $(BIN_DIST).tgz $(BIN_DIST))

# -----------------------------------------------------
# Target for building SMLserver binary package. The target
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Library.

## Test Statistics and Benchmarking

[![Build Status](https://travis-ci.org/melsman/mlkit.svg?branch=master)](https://travis-ci.org/melsman/mlkit) [Benchmarking](https://elsman.com/mlkit-bench/)
[![CI](https://github.com/melsman/mlkit/workflows/CI/badge.svg)](https://github.com/melsman/mlkit/actions) [Benchmarking](https://elsman.com/mlkit-bench/)

## Installation

Expand Down

0 comments on commit 3290af3

Please sign in to comment.