Skip to content

Commit

Permalink
Retvrned to ninja lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
RealNeGate committed Jan 6, 2023
1 parent f6d9e32 commit aacfc71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 66 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1

- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@v4
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Download Submodules
run: git submodule update --init --recursive
Expand All @@ -17,7 +15,7 @@ jobs:
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
make -j OPT=1
py build.py --opt && ninja
timeout-minutes: 10

- name: upload artifacts
Expand All @@ -29,17 +27,18 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Download LLVM and Make
- name: Download LLVM
run: |
brew update
brew install llvm@14 make
brew install llvm@14
- name: Download Submodules
run: git submodule update --init --recursive

- name: Build TB
run: make -j OPT=1
run: py build.py --opt && ninja
timeout-minutes: 10

- name: upload artifacts
Expand All @@ -51,14 +50,15 @@ jobs:
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: make -j OPT=1
run: py build.py --opt && ninja
timeout-minutes: 10

- name: upload artifacts
Expand Down
56 changes: 0 additions & 56 deletions Makefile

This file was deleted.

3 changes: 1 addition & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
cflags += " -DTB_USE_LUAJIT"

if args.opt:
cflags += " -O2 -DNDEBUG"
cflags += " -flto -O2 -DNDEBUG"

os_name = platform.system()
if os_name == "Windows":
Expand Down Expand Up @@ -85,5 +85,4 @@
ninja.write(f"build tildebackend{lib_ext}: lib {' '.join(objs)}\n")
ninja.close()

# run ninja
exit(subprocess.call(['ninja']))

0 comments on commit aacfc71

Please sign in to comment.