-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.43 KB
/
build.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
name: Build
run-name: Build
on:
push:
paths:
- .github/workflows/**
- build.lua
- src/**
- tables/**
- test/**
jobs:
build-linux:
name: Build (ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/setup-nasm@v1
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: latest
build-type: release
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4.1"
- name: Build CLI
run: lua build.lua
- name: Test table encodings
run: lua build.lua test-table
- name: Test against assembly
run: |
lua build.lua build-test-nasm
./test-nasm test/asm/mov16.asm
build-windows:
name: Build (windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/setup-nasm@v1
- uses: ilammy/msvc-dev-cmd@v1
- uses: laytan/setup-odin@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: latest
build-type: release
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4.1"
- name: Build CLI
run: lua build.lua
- name: Test table encodings
run: lua build.lua test-table
- name: Test against assembly
run: |
lua build.lua build-test-nasm
./test-nasm test/asm/mov16.asm