mirror of
https://github.com/janet-lang/janet
synced 2025-11-19 00:35:11 +00:00
Compare commits
6 Commits
v1.37.0
...
mingw-vari
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
315a832278 | ||
|
|
ae4c266c3c | ||
|
|
7dc2c9bc88 | ||
|
|
f1210a6b81 | ||
|
|
1331161086 | ||
|
|
7025d251a6 |
40
.github/workflows/test.yml
vendored
40
.github/workflows/test.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest, macos-13 ]
|
os: [ ubuntu-latest, macos-latest, macos-13 ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Compile the project
|
- name: Build
|
||||||
run: make clean && make
|
run: make clean && make
|
||||||
- name: Test the project
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
test-windows:
|
test-windows:
|
||||||
@@ -32,40 +32,46 @@ jobs:
|
|||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Setup MSVC
|
- name: Setup MSVC
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
- name: Build the project
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: build_win
|
run: build_win
|
||||||
- name: Test the project
|
- name: Test
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: build_win test
|
run: build_win test
|
||||||
|
|
||||||
test-mingw:
|
test-mingw:
|
||||||
name: Build on Windows with Mingw (no test yet)
|
name: Build on Windows with Mingw
|
||||||
runs-on: windows-latest
|
runs-on: windows-2019
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
msystem: [ UCRT64, MINGW64, MINGW32, CLANG64 ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Setup Mingw
|
- name: Setup Mingw
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: UCRT64
|
msystem: ${{ matrix.msystem }}
|
||||||
update: true
|
update: true
|
||||||
install: >-
|
install: >-
|
||||||
base-devel
|
base-devel
|
||||||
git
|
git
|
||||||
gcc
|
gcc
|
||||||
- name: Build the project
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: make -j4 CC=gcc JANET_NO_AMALG=1
|
run: make -j4 CC=gcc
|
||||||
|
- name: Test
|
||||||
|
shell: cmd
|
||||||
|
run: make test -j4 CC=gcc
|
||||||
|
|
||||||
test-mingw-linux:
|
test-mingw-linux:
|
||||||
name: Build and test with Mingw on Linux + Wine
|
name: Build and test with Mingw on Linux + Wine
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Setup Mingw and wine
|
- name: Setup Mingw and wine
|
||||||
run: |
|
run: |
|
||||||
@@ -73,24 +79,24 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libstdc++6:i386 libgcc-s1:i386
|
sudo apt-get install libstdc++6:i386 libgcc-s1:i386
|
||||||
sudo apt-get install gcc-mingw-w64-x86-64-win32 wine wine32 wine64
|
sudo apt-get install gcc-mingw-w64-x86-64-win32 wine wine32 wine64
|
||||||
- name: Compile the project
|
- name: Build
|
||||||
run: make clean && make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-gcc UNAME=MINGW RUN=wine
|
run: make clean && make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-gcc UNAME=MINGW RUN=wine
|
||||||
- name: Test the project
|
- name: Test
|
||||||
run: make test UNAME=MINGW RUN=wine VERBOSE=1
|
run: make test UNAME=MINGW RUN=wine VERBOSE=1
|
||||||
|
|
||||||
test-arm-linux:
|
test-arm-linux:
|
||||||
name: Build and test ARM32 cross compilation
|
name: Build and test ARM32 cross compilation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Setup qemu and cross compiler
|
- name: Setup qemu and cross compiler
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install gcc-arm-linux-gnueabi qemu-user
|
sudo apt-get install gcc-arm-linux-gnueabi qemu-user
|
||||||
- name: Compile the project
|
- name: Build
|
||||||
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-gcc
|
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-gcc
|
||||||
- name: Test the project
|
- name: Test
|
||||||
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" SUBRUN="qemu-arm -L /usr/arm-linux-gnueabi/" test VERBOSE=1
|
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" SUBRUN="qemu-arm -L /usr/arm-linux-gnueabi/" test VERBOSE=1
|
||||||
|
|
||||||
test-s390x-linux:
|
test-s390x-linux:
|
||||||
|
|||||||
@@ -31,11 +31,14 @@
|
|||||||
#ifndef JANET_SINGLE_THREADED
|
#ifndef JANET_SINGLE_THREADED
|
||||||
#ifndef JANET_WINDOWS
|
#ifndef JANET_WINDOWS
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#else
|
|
||||||
#include <windows.h>
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Even if single threaded, include this for atomics! */
|
||||||
|
#ifdef JANET_WINDOWS
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef JANET_USE_STDATOMIC
|
#ifdef JANET_USE_STDATOMIC
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
/* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations.
|
/* We don't need stdatomic on most compilers since we use compiler builtins for atomic operations.
|
||||||
|
|||||||
Reference in New Issue
Block a user