-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c155db
commit 2972cfa
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |