Skip to content

Commit 975f83a

Browse files
committed
Setup github actions
1 parent 51c1fd0 commit 975f83a

27 files changed

+185
-74
lines changed

.github/workflows/ci.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
test:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
haxe-version:
16+
- stable
17+
- nightly
18+
target:
19+
- interp
20+
- neko
21+
- node
22+
- js
23+
- cpp
24+
- php
25+
- jvm
26+
- python
27+
- lua
28+
29+
steps:
30+
- name: Check out repo
31+
uses: actions/checkout@v2
32+
33+
- name: Get yarn cache directory path
34+
id: yarn-cache-dir-path
35+
run: echo "::set-output name=dir::$(yarn cache dir)"
36+
37+
- name: Cache Yarn
38+
uses: actions/cache@v1
39+
with:
40+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-yarn-
44+
45+
- name: Cache Haxe
46+
uses: actions/cache@v1
47+
with:
48+
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
49+
key: ${{ runner.os }}-haxe
50+
51+
- name: Install Lix
52+
uses: lix-pm/setup-lix@master
53+
54+
- name: Install Haxe
55+
run: lix install haxe ${{ matrix.haxe-version }}
56+
57+
- name: Install Haxe Libraries
58+
run: lix download
59+
60+
- name: Run Test
61+
run: lix run travix ${{ matrix.target }}
62+
63+
release:
64+
runs-on: ubuntu-latest
65+
needs: test
66+
if: startsWith(github.ref, 'refs/tags/') # consider using the "release" event. see: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
67+
68+
steps:
69+
- name: Check out repo
70+
uses: actions/checkout@v2
71+
72+
- name: Get yarn cache directory path
73+
id: yarn-cache-dir-path
74+
run: echo "::set-output name=dir::$(yarn cache dir)"
75+
76+
- name: Cache Yarn
77+
uses: actions/cache@v1
78+
with:
79+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
80+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
81+
restore-keys: |
82+
${{ runner.os }}-yarn-
83+
84+
- name: Cache Haxe
85+
uses: actions/cache@v1
86+
with:
87+
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
88+
key: ${{ runner.os }}-haxe
89+
90+
- name: Install Lix
91+
uses: lix-pm/setup-lix@master
92+
93+
- name: Install Haxe
94+
run: lix install haxe stable
95+
96+
- name: Install Haxe Libraries
97+
run: lix download
98+
99+
- name: Release to Haxelib
100+
run: lix run travix release
101+
env:
102+
HAXELIB_AUTH: ${{ secrets.HAXELIB_AUTH }}
103+
File renamed without changes.

haxe_libraries/coconut.data.hxml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.data#c8fcc7f8bffc3cb54a995dac559373d774e52e88" into coconut.data/0.10.1/github/c8fcc7f8bffc3cb54a995dac559373d774e52e88
1+
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.data#587d2c2dbc57cc24ecb52303c5e22eb97fed12cd" into coconut.data/0.12.1/github/587d2c2dbc57cc24ecb52303c5e22eb97fed12cd
22
-lib tink_anon
3+
-lib tink_priority
34
-lib tink_pure
45
-lib tink_state
5-
-cp ${HAXE_LIBCACHE}/coconut.data/0.10.1/github/c8fcc7f8bffc3cb54a995dac559373d774e52e88/src
6-
-D coconut.data=0.10.1
6+
-cp ${HAXE_LIBCACHE}/coconut.data/0.12.1/github/587d2c2dbc57cc24ecb52303c5e22eb97fed12cd/src
7+
-D coconut.data=0.12.1
78
--macro coconut.data.macros.Setup.run()

haxe_libraries/coconut.ui.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.ui#dc7be0000106d73896af483136527b4dc5ac3fc9" into coconut.ui/0.11.2/github/dc7be0000106d73896af483136527b4dc5ac3fc9
1+
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.ui#0a37e3d706e1773e6623c8d425f16d0b9c96bedd" into coconut.ui/0.12.0/github/0a37e3d706e1773e6623c8d425f16d0b9c96bedd
22
-lib coconut.data
33
-lib tink_anon
44
-lib tink_hxx
5-
-cp ${HAXE_LIBCACHE}/coconut.ui/0.11.2/github/dc7be0000106d73896af483136527b4dc5ac3fc9/src
6-
-D coconut.ui=0.11.2
5+
-cp ${HAXE_LIBCACHE}/coconut.ui/0.12.0/github/0a37e3d706e1773e6623c8d425f16d0b9c96bedd/src
6+
-D coconut.ui=0.12.0

haxe_libraries/coconut.vdom.hxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.vdom#9a71bb66e06236ba3d65636544f0e7dbfb679439" into coconut.vdom/0.8.1/github/9a71bb66e06236ba3d65636544f0e7dbfb679439
1+
# @install: lix --silent download "gh://github.com/MVCoconut/coconut.vdom#058fbb7b86580043bea3335ab0a58f863c143b72" into coconut.vdom/0.8.1/github/058fbb7b86580043bea3335ab0a58f863c143b72
22
-lib coconut.diffing
33
-lib xDOM
4-
-cp ${HAXE_LIBCACHE}/coconut.vdom/0.8.1/github/9a71bb66e06236ba3d65636544f0e7dbfb679439/src
4+
-cp ${HAXE_LIBCACHE}/coconut.vdom/0.8.1/github/058fbb7b86580043bea3335ab0a58f863c143b72/src
55
-D coconut.vdom=0.8.1

haxe_libraries/hxcpp.hxml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# @install: lix --silent download "haxelib:/hxcpp#4.2.1" into hxcpp/4.2.1/haxelib
2+
# @run: haxelib run-dir hxcpp ${HAXE_LIBCACHE}/hxcpp/4.2.1/haxelib
3+
-cp ${HAXE_LIBCACHE}/hxcpp/4.2.1/haxelib/
4+
-D hxcpp=4.2.1

haxe_libraries/hxnodejs.hxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @install: lix --silent download "haxelib:/hxnodejs#12.1.0" into hxnodejs/12.1.0/haxelib
22
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/haxelib/src
33
-D hxnodejs=12.1.0
4-
--macro allowPackage('sys')
5-
# should behave like other target defines and not be defined in macro context
6-
--macro define('nodejs')
7-
--macro _internal.SuppressDeprecated.run()
4+
--macro allowPackage('sys')
5+
# should behave like other target defines and not be defined in macro context
6+
--macro define('nodejs')
7+
--macro _internal.SuppressDeprecated.run()

haxe_libraries/tink_anon.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @install: lix --silent download "haxelib:/tink_anon#0.5.1" into tink_anon/0.5.1/haxelib
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_anon#3cceb2a4bd00bd5b9a4476cb889a37f1e178e805" into tink_anon/0.7.0/github/3cceb2a4bd00bd5b9a4476cb889a37f1e178e805
22
-lib tink_macro
3-
-cp ${HAXE_LIBCACHE}/tink_anon/0.5.1/haxelib/src
4-
-D tink_anon=0.5.1
3+
-cp ${HAXE_LIBCACHE}/tink_anon/0.7.0/github/3cceb2a4bd00bd5b9a4476cb889a37f1e178e805/src
4+
-D tink_anon=0.7.0

haxe_libraries/tink_chunk.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# @install: lix --silent download "haxelib:/tink_chunk#0.3.1" into tink_chunk/0.3.1/haxelib
2-
-cp ${HAXE_LIBCACHE}/tink_chunk/0.3.1/haxelib/src
3-
-D tink_chunk=0.3.1
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_chunk#d58e35ce6985a9e40e76a9771e8eee30c6efa5aa" into tink_chunk/0.4.0/github/d58e35ce6985a9e40e76a9771e8eee30c6efa5aa
2+
-cp ${HAXE_LIBCACHE}/tink_chunk/0.4.0/github/d58e35ce6985a9e40e76a9771e8eee30c6efa5aa/src
3+
-D tink_chunk=0.4.0

haxe_libraries/tink_cli.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# @install: lix --silent download "haxelib:/tink_cli#0.5.0" into tink_cli/0.5.0/haxelib
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_cli#1278ad2a34fd5e2403e414aefe09bb938d0c8825" into tink_cli/0.5.1/github/1278ad2a34fd5e2403e414aefe09bb938d0c8825
22
-lib tink_io
33
-lib tink_macro
44
-lib tink_stringly
5-
-cp ${HAXE_LIBCACHE}/tink_cli/0.5.0/haxelib/src
6-
-D tink_cli=0.5.0
5+
-cp ${HAXE_LIBCACHE}/tink_cli/0.5.1/github/1278ad2a34fd5e2403e414aefe09bb938d0c8825/src
6+
-D tink_cli=0.5.1
77
# Make sure docs are generated
88
-D use-rtti-doc

0 commit comments

Comments
 (0)