80 lines
2.6 KiB
YAML
80 lines
2.6 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test-core:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
haxe-version: [4.2.5]
|
|
node-version: ['14']
|
|
python-version: ['3.x']
|
|
test-target:
|
|
- KISS_TARGET=cpp
|
|
- KISS_TARGET=cs
|
|
- KISS_TARGET=interp
|
|
- KISS_TARGET=js
|
|
- KISS_TARGET=nodejs
|
|
- KISS_TARGET=py
|
|
- KISS_PROJECT=aoc
|
|
# TODO bump-version
|
|
- KISS_PROJECT=flixel-desktop-habit-puzzle-game
|
|
# TODO hollywoo
|
|
# TODO hollywoo-flixel
|
|
# TODO iso-rpg-engine
|
|
- KISS_PROJECT=kill-carriage-return
|
|
# TODO kiss-express
|
|
- KISS_PROJECT=kiss-cli-tests
|
|
# TODO kiss-flixel
|
|
- KISS_PROJECT=kiss-tools
|
|
- KISS_PROJECT=kiss-vscode
|
|
# TODO lets-read
|
|
- KISS_PROJECT=nat-archive-tool
|
|
- KISS_PROJECT=nat-flixel-desktop-playground
|
|
- KISS_PROJECT=nat-godot-playground
|
|
- KISS_PROJECT=nat-globelet-playground
|
|
- KISS_PROJECT=pdf-salad
|
|
# TODO prokgen
|
|
# TODO re-flex
|
|
# skip requests-externs
|
|
fail-fast: true
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
CI_OS_NAME: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
# Set up Kiss runtimes:
|
|
# haxe
|
|
- uses: krdlab/setup-haxe@v1.4.1
|
|
with:
|
|
haxe-version: ${{ matrix.haxe-version }}
|
|
# nodejs
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
# python
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
# mono
|
|
- run: brew install mono || brew link --overwrite mono
|
|
if: ${{ matrix.os == 'macos-latest' }}
|
|
- run: choco install mono
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
- run: |
|
|
# instructions for ubuntu 20.04 from here: https://www.mono-project.com/download/stable/#download-lin
|
|
sudo apt install gnupg ca-certificates
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
|
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
|
|
sudo apt update
|
|
sudo apt install mono-devel
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
# output debug info
|
|
- run: haxe -version
|
|
# run target test:
|
|
- run: echo "${{ matrix.test-target }}" >> $GITHUB_ENV
|
|
- run: ./test.sh
|
|
shell: bash
|
|
|