From bbea5423f6a9bde57d6ca1b88573497a395ec332 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Sat, 2 Sep 2023 11:47:40 +1100 Subject: [PATCH] change CI scripts in accordance with build script --- .github/workflows/build-linux.yml | 3 ++- .github/workflows/build-windows.yml | 3 ++- build.py | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index ffd1dd9..169ce20 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -38,4 +38,5 @@ jobs: - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} shell: bash - run: ./build.py --mode release --target linux --test tests/hello.c + run: ./build.py -m release -t tests/hello.c + run: ./a diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index b7248ea..b3ce713 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -38,4 +38,5 @@ jobs: - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} shell: bash - run: ./build.py --mode release --target windows --test tests/hello.c + run: ./build.py -m release -t tests/hello.c + run: ./a diff --git a/build.py b/build.py index 36278d5..7c30718 100755 --- a/build.py +++ b/build.py @@ -110,6 +110,9 @@ if not os.path.exists('lib'): if not os.path.exists('bin'): os.mkdir('bin') +if platform.system().lower() == 'windows': + sys.exit(1); + target_abi = 'sysv' target_arch = 'x86-64' target_os = 'linux'