-
-
Notifications
You must be signed in to change notification settings - Fork 58
39 lines (39 loc) · 1.29 KB
/
all.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
name: Builds
on: [push]
jobs:
linux-minivm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: make CC=cc OPT='-Os -fomit-frame-pointer -flto'
- uses: actions/upload-artifact@v3
with:
name: minivm-linux
path: |
build/bin/minivm
linux-minivm-warnings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: make CC=cc OPT='-g3' CFLAGS='-Wall -Wextra -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-missing-braces'
- uses: actions/upload-artifact@v3
with:
name: minivm-linux-debug
path: |
build/bin/minivm
windows-minivm-gcc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: make EXE=.exe CC='gcc' OPT='-Os -fomit-frame-pointer -flto' CFLAGS='-D__chkstk=vm_hack_chkstk -Icuik/c11threads -include pthread.h' EXTRA_SRCS='cuik/c11threads/threads_posix.c' LDFLAGS='-lpthread'
- uses: actions/upload-artifact@v3
with:
name: minivm-windows
path: |
build/bin/minivm.exe