forked from RealNeGate/tilde-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/RealNeGate/tilde-backend
- Loading branch information
Showing
31 changed files
with
1,772 additions
and
1,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
on: [pull_request, workflow_dispatch, push] | ||
|
||
jobs: | ||
build_windows: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Download Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Build TB | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat | ||
py build.py x64 aarch64 wasm | ||
timeout-minutes: 10 | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Download LLVM | ||
run: sudo apt-get install llvm-11 clang-11 | ||
|
||
- name: Download Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Build TB | ||
run: python3 build.py x64 aarch64 wasm | ||
timeout-minutes: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Deploy | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build_windows: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Download Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Build TB | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat | ||
py build.py x64 aarch64 wasm | ||
timeout-minutes: 10 | ||
|
||
- name: Copy artifacts | ||
run: | | ||
mkdir dist | ||
cp include dist | ||
cp -r tildebackend.lib dist | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: windows_artifacts | ||
path: dist | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Download LLVM | ||
run: sudo apt-get install llvm-11 clang-11 | ||
|
||
- name: Download Submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Build TB | ||
run: python3 build.py x64 aarch64 wasm | ||
timeout-minutes: 10 | ||
|
||
- name: Copy artifacts | ||
run: | | ||
mkdir dist | ||
cp include dist | ||
cp -r tildebackend.a dist | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ubuntu_artifacts | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CC = clang | ||
CFLAGS = -Wall -Werror -Wno-unused-function -I include -I deps/luajit/src | ||
LDLIBS = | ||
|
||
SOURCES := src/tb/tb.c | ||
OBJECTS := $(addprefix bin/, $(notdir $(SOURCES:%.c=%.o))) | ||
INCLUDES := include | ||
|
||
# Convert into library | ||
all: tildebackend.lib | ||
|
||
tildebackend.lib: $(OBJECTS) | ||
lib /nologo /out:$out $(inputs) | ||
|
||
# C source code | ||
%.o: %.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $(@) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,4 @@ | |
ninja.close() | ||
|
||
# run ninja | ||
subprocess.call(['ninja']) | ||
exit(subprocess.call(['ninja'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.