-
Notifications
You must be signed in to change notification settings - Fork 30
109 lines (109 loc) · 2.96 KB
/
test.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: test
on: [ push, pull_request ]
jobs:
windows-x86:
name: windows (x86)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -arch x86 -notest
- run: luamake -arch x86 -sanitize
windows-x86_64:
name: windows (x86_64)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -arch x86_64 -notest
- run: luamake -arch x86_64 -sanitize
windows-clang:
name: windows (clang)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -cc clang-cl
windows-mingw:
name: windows (mingw)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: luamake
repository: actboy168/luamake
submodules : recursive
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
- shell: msys2 {0}
working-directory: luamake
run: ./compile/build.sh notest
- shell: msys2 {0}
run: ./luamake/luamake
macos-x86_64:
name: macos (x86_64)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -arch x86_64 -notest
- run: luamake -arch x86_64 -sanitize
macos-arm64:
name: macos (arm64)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -arch arm64 -notest
- run: luamake -arch arm64 -sanitize
linux-x86_64:
name: linux (x86_64)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -notest
- run: luamake lua test/glibc-version.lua
- run: luamake -sanitize
bsd:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: freebsd
version: '14.0'
install: pkg install -y ninja libinotify
- os: openbsd
version: '7.5'
install: pkg_add ninja libinotify
- os: netbsd
version: '10.0'
install: pkgin -y install ninja-build libinotify
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: luamake
repository: actboy168/luamake
submodules : recursive
- uses: actions/checkout@v4
with:
path: bee.lua
repository: actboy168/bee.lua
submodules : recursive
- uses: cross-platform-actions/[email protected]
with:
operating_system: ${{ matrix.os }}
version: ${{ matrix.version }}
run: |
sudo ${{ matrix.install }}
cd luamake
./compile/build.sh notest
cd ../bee.lua
./../luamake/luamake