Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol committed Jul 16, 2024
1 parent 2c155db commit 2972cfa
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
pull_request:
branches: [ master ]

env:
CI: "true"

jobs:
test:

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.haxe-version == 'nightly' }}
strategy:
matrix:
haxe-version:
- 4.3.4
- stable
- nightly
target:
- cpp -lib linc_lua
- node -lib hxjs-fengari

steps:
- name: Check Node.js Version
run: node -v

- name: Check out repo
uses: actions/checkout@v3

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache Haxe
uses: actions/cache@v3
with:
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
key: ${{ runner.os }}-haxe

- name: Install Lix
uses: lix-pm/setup-lix@master

- name: Install Haxe
run: lix install haxe ${{ matrix.haxe-version }}

- name: Install Haxe Libraries
run: lix download

- name: Run Test
run: lix run travix ${{ matrix.target }}

0 comments on commit 2972cfa

Please sign in to comment.