~bakpakin/janet

1b3648f9c4bd297383e96cf946e131fb287872ce — Calvin Rose 1 year, 4 months ago c3e28bc + f2197fa async-connect
Merge branch 'master' into async-connect
2 files changed, 22 insertions(+), 0 deletions(-)

M .github/workflows/test.yml
M src/core/features.h
M .github/workflows/test.yml => .github/workflows/test.yml +17 -0
@@ 57,3 57,20 @@ jobs:
      - name: Build the project
        shell: cmd
        run: make -j CC=gcc

  test-mingw-linux:
    name: Build and test with Mingw on Linux + Wine
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the repository
        uses: actions/checkout@master
      - name: Setup Mingw and wine
        run: |
          sudo dpkg --add-architecture i386
          sudo apt-get update
          sudo apt-get install libstdc++6:i386 libgcc-s1:i386
          sudo apt-get install gcc-mingw-w64-x86-64-win32 wine wine32 wine64
      - name: Compile the project
        run: make clean && make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-gcc UNAME=MINGW RUN=wine
      - name: Test the project
        run: make test UNAME=MINGW RUN=wine

M src/core/features.h => src/core/features.h +5 -0
@@ 50,6 50,11 @@
#define WIN32_LEAN_AND_MEAN
#endif

/* needed for inet_pton and InitializeSRWLock */
#ifdef __MINGW32__
#define _WIN32_WINNT _WIN32_WINNT_VISTA
#endif

/* Needed for realpath on linux, as well as pthread rwlocks. */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600