Skip to content

Test refactors, moved tests to github workflow #1

Test refactors, moved tests to github workflow

Test refactors, moved tests to github workflow #1

name: Simple Run Test
on:
push:
branches: [ main, master, v* ]
pull_request:
branches: [ main, master, v* ]
jobs:
simple-run-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
# Linux setup
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc make
# macOS setup
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
which gcc || which clang
which make
# Windows setup with MSYS2
- name: Setup MSYS2 (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-make
make
bash
# Run the test on Unix systems
- name: Run simple test (Unix)
if: runner.os != 'Windows'
run: bash test/simple.test.sh
# Run the test on Windows with MSYS2 environment
- name: Run simple test (Windows)
if: runner.os == 'Windows'
shell: msys2 {0}
run: bash test/simple.test.sh