1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-18 11:19:56 +00:00
janet/.github/workflows/test.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

2021-08-25 01:33:02 +00:00
name: Test
on: [push, pull_request]
permissions:
contents: read
2021-08-25 01:33:02 +00:00
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
2023-01-22 17:05:27 +00:00
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:
2023-01-22 17:21:28 +00:00
msystem: UCRT64
2023-01-22 17:05:27 +00:00
update: true
install: >-
base-devel
git
2023-01-22 17:21:28 +00:00
gcc
2023-01-22 17:05:27 +00:00
- name: Build the project
shell: cmd
2023-01-22 17:21:28 +00:00
run: make -j CC=gcc