forked from mafemergency/byond-tracy
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.05 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
name: Build
on: [push, pull_request]
jobs:
windows:
name: Windows Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up x86 build tools
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
vsversion: 2022
- name: Compile byond-tracy
run: |
cl.exe /nologo /std:c11 /O2 /LD /DNDEBUG prof.c ws2_32.lib /Fe:prof.dll /experimental:c11atomics
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: byond-tracy-windows
path: prof.dll
linux:
name: Linux Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gcc-multilib
run: |
sudo apt-get update
sudo apt-get -y install gcc-multilib
- name: Compile byond-tracy
run: |
gcc -D_FILE_OFFSET_BITS=64 -std=c11 -m32 -shared -fPIC -Ofast -s -DNDEBUG prof.c -pthread -o libprof.so
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: byond-tracy-linux
path: libprof.so