mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
b219b146fa
commitfbb0711ae1
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 12:07:55 2023 -0500 Distinguish between subprocess when testing. commit676b233566
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:59:17 2023 -0500 Hack for qemu based testing (also should work with valgrind) commitd7431c7cdb
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:54:04 2023 -0500 Revert "Test removing 32bit ptr marshalling." This reverts commit566b45ea44
. commit566b45ea44
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:52:22 2023 -0500 Test removing 32bit ptr marshalling. commitff2f71d2bc
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:42:10 2023 -0500 Conditionally compile marshal_ptr code. commitbd420aeb0e
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:38:34 2023 -0500 Add range checking to bit-shift code to prevent undefined behavior. commitb738319f8d
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 11:17:30 2023 -0500 Remove range check on 32 bit arch since it will always pass. commit7248626235
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 10:56:45 2023 -0500 Quiet some build warnings. commit141c1de946
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 10:50:13 2023 -0500 Add marshal utilities for pointers. commitc2d77d6720
Merge:677b8a6f
ff90b81e
Author: Calvin Rose <calsrose@gmail.com> Date: Sat Jun 24 10:40:35 2023 -0500 Merge branch 'master' into armtest commit677b8a6f32
Author: Ico Doornekamp <ico@zevv.nl> Date: Mon Jun 12 21:01:26 2023 +0200 Added ARM32 test
92 lines
2.6 KiB
YAML
92 lines
2.6 KiB
YAML
name: Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
test-posix:
|
|
name: Build and test on POSIX systems
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@master
|
|
- name: Compile the project
|
|
run: make clean && make
|
|
- name: Test the project
|
|
run: make test
|
|
|
|
test-windows:
|
|
name: Build and test on Windows
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@master
|
|
- name: Setup MSVC
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
- name: Build the project
|
|
shell: cmd
|
|
run: build_win
|
|
- name: Test the project
|
|
shell: cmd
|
|
run: build_win test
|
|
|
|
test-mingw:
|
|
name: Build on Windows with Mingw (no test yet)
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@master
|
|
- name: Setup Mingw
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: UCRT64
|
|
update: true
|
|
install: >-
|
|
base-devel
|
|
git
|
|
gcc
|
|
- 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
|
|
|
|
test-arm-linux:
|
|
name: Build and test ARM32 cross compilation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@master
|
|
- name: Setup qemu and cross compiler
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install gcc-arm-linux-gnueabi qemu-user
|
|
- name: Compile the project
|
|
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-gcc
|
|
- name: Test the project
|
|
run: make RUN="qemu-arm -L /usr/arm-linux-gnueabi/" SUBRUN="qemu-arm -L /usr/arm-linux-gnueabi/" test
|