-
Notifications
You must be signed in to change notification settings - Fork 30
146 lines (146 loc) · 4.04 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
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 -sanitize
- run: luamake test -v
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 -sanitize
- run: luamake test -v
windows-clang:
name: windows (clang)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- continue-on-error: true
run: |
luamake -cc clang-cl -notest
luamake test -v
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 -notest
./luamake/luamake test -v
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 -sanitize
- run: luamake test -v
macos-arm64:
name: macos (arm64)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actboy168/setup-luamake@master
- run: luamake -arch arm64 -notest -sanitize
- run: luamake test -v
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 -sanitize
- run: luamake lua test/glibc-version.lua
- run: luamake test -v
linux:
strategy:
fail-fast: false
matrix:
arch: [aarch64, armv7, riscv64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: luamake
repository: actboy168/luamake
submodules : recursive
- uses: uraimo/run-on-arch-action@v2
continue-on-error: true
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
dockerRunArgs: |
--volume "${PWD}:/actboy168"
install: |
apt-get update -q -y
apt-get install -q -y gcc g++ ninja-build
apt-get install -q -y binutils-dev libunwind-dev
run: |
pushd luamake
./compile/build.sh notest
popd
./luamake/luamake -notest
./luamake/luamake lua test/glibc-version.lua
./luamake/luamake test -v
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 -noetst
./../luamake/luamake test -v