-
Notifications
You must be signed in to change notification settings - Fork 63
86 lines (72 loc) · 1.88 KB
/
ci.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
build_type: [tiny, regular-asm]
lua_engine: [LuaJIT, Lua]
env:
BUILD_TYPE: ${{ matrix.build_type }}
WITH_LUA_ENGINE: ${{ matrix.lua_engine }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
run: WITHOUT_AMALG=1 make ${BUILD_TYPE} WITH_LUA_ENGINE=${WITH_LUA_ENGINE}
- name: Build
run: make
- name: Test
run: make test
deploy-linux:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Fetch
run: git fetch --unshallow --no-recurse-submodules
- name: Build
run: make linux-build
- name: Github Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
luvi-regular-Linux_x86_64
luvi-tiny-Linux_x86_64
luvi-regular-Linux_i686
luvi-tiny-Linux_i686
draft: false
prerelease: false
deploy-macos:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Fetch
run: git fetch --unshallow --no-recurse-submodules
- name: Build
run: make travis-publish
- name: Github Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
luvi-regular-Darwin_x86_64
luvi-tiny-Darwin_x86_64
luvi-src-*.tar.gz
draft: false
prerelease: false