-
Notifications
You must be signed in to change notification settings - Fork 67
70 lines (65 loc) · 1.73 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build
on:
workflow_dispatch:
push:
branches: [ "staging" ]
pull_request:
branches: [ "staging" ]
schedule:
- cron: "0 0 * * *"
env:
CFLAGS: -Werror
#USE_NET: 1
jobs:
linux-build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: make lib all
- name: Upload Artifacts
uses: actions/[email protected]
with:
retention-days: 5
name: rvvm_linux_x86_64
path: |
release.linux.x86_64/rvvm_x86_64
release.linux.x86_64/librvvm.so
release.linux.x86_64/librvvm.a
win32-build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up MinGW
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends gcc-mingw-w64-x86-64-win32
- name: Build
run: make CC=x86_64-w64-mingw32-gcc all lib
- name: Upload Artifacts
uses: actions/[email protected]
with:
retention-days: 5
name: rvvm_win32_x86_64
path: |
release.windows.x86_64/rvvm_x86_64.exe
release.windows.x86_64/librvvm.dll
release.windows.x86_64/librvvm.a
macos-build:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install SDL
run: brew install sdl12-compat
- name: Build
run: make all lib
- name: Upload Artifacts
uses: actions/[email protected]
with:
retention-days: 5
name: rvvm_macos_x86_64
path: |
release.darwin.x86_64/rvvm_x86_64
release.darwin.x86_64/librvvm.so
release.darwin.x86_64/librvvm.a