-
Notifications
You must be signed in to change notification settings - Fork 6
65 lines (52 loc) · 1.56 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build-test-release-linux:
name: Build, test, and upload release binaries (linux)
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y mlton make
- name: Build
run: |
MLCOMP=mlton make clean all bin_dist
- name: Run tests
run: |
MLCOMP=mlton make test
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: smlpkg-bin-dist-linux.tgz
tag: ${{ github.ref }}
overwrite: true
build-test-release-macos:
name: Build, test, and upload release binaries (macos)
if: github.event.base_ref == 'refs/heads/master'
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install make
brew install mlton
- name: Build
run: |
MLCOMP=mlton make clean all bin_dist
- name: Run tests
run: |
MLCOMP=mlton make test
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: smlpkg-bin-dist-darwin.tgz
tag: ${{ github.ref }}
overwrite: true