-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.24 KB
/
main.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-linux-x86:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build
run: cd src && make -f Makefile.linux-x86.mk
- name: Test
run: ./loda test
build-linux-arm64:
runs-on:
- self-hosted
- Linux
- ARM64
steps:
- uses: actions/checkout@v2
- name: Build
run: cd src && make -f Makefile.linux-arm64.mk
- name: Test
run: ./loda test-fast
build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cd src
make -f Makefile.macos-x86.mk
mv loda loda-x86
make clean
make -f Makefile.macos-arm64.mk
mv loda loda-arm64
lipo -create -output loda loda-x86 loda-arm64
rm loda-x86 loda-arm64
file loda
- name: Test
run: ./loda test
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: cd src && nmake.exe /F Makefile.windows.mk
- name: Test
run: ./loda.exe test