Skip to content

Commit 1d3455c

Browse files
committed
Setup github actions
1 parent e2d2eab commit 1d3455c

21 files changed

+156
-58
lines changed

.github/workflows/ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
- node
20+
21+
steps:
22+
- name: Check out repo
23+
uses: actions/checkout@v2
24+
25+
- name: Get yarn cache directory path
26+
id: yarn-cache-dir-path
27+
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
29+
- name: Cache Yarn
30+
uses: actions/cache@v1
31+
with:
32+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
33+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-yarn-
36+
37+
- name: Cache Haxe
38+
uses: actions/cache@v1
39+
with:
40+
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
41+
key: ${{ runner.os }}-haxe
42+
43+
- name: Install Lix
44+
uses: lix-pm/setup-lix@master
45+
46+
- name: Install Haxe
47+
run: lix install haxe ${{ matrix.haxe-version }}
48+
49+
- name: Install Haxe Libraries
50+
run: lix download
51+
52+
- name: Run Test
53+
run: lix run travix ${{ matrix.target }}
54+
55+
release:
56+
runs-on: ubuntu-latest
57+
needs: test
58+
if: startsWith(github.ref, 'refs/tags/') # consider using the "release" event. see: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
59+
60+
steps:
61+
- name: Check out repo
62+
uses: actions/checkout@v2
63+
64+
- name: Get yarn cache directory path
65+
id: yarn-cache-dir-path
66+
run: echo "::set-output name=dir::$(yarn cache dir)"
67+
68+
- name: Cache Yarn
69+
uses: actions/cache@v1
70+
with:
71+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
72+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
73+
restore-keys: |
74+
${{ runner.os }}-yarn-
75+
76+
- name: Cache Haxe
77+
uses: actions/cache@v1
78+
with:
79+
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
80+
key: ${{ runner.os }}-haxe
81+
82+
- name: Install Lix
83+
uses: lix-pm/setup-lix@master
84+
85+
- name: Install Haxe
86+
run: lix install haxe stable
87+
88+
- name: Install Haxe Libraries
89+
run: lix download
90+
91+
- name: Release to Haxelib
92+
run: lix run travix release
93+
env:
94+
HAXELIB_AUTH: ${{ secrets.HAXELIB_AUTH }}
95+
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#a0491314f4e4c402d471f501dcd7b99a062c1b1e" into coconut.data/0.10.1/github/a0491314f4e4c402d471f501dcd7b99a062c1b1e
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/a0491314f4e4c402d471f501dcd7b99a062c1b1e/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: 2 additions & 2 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#1e1b05cf534daec805794e0deffea1050d1fa7b8" into coconut.ui/0.11.2/github/1e1b05cf534daec805794e0deffea1050d1fa7b8
22
-lib coconut.data
33
-lib tink_anon
44
-lib tink_hxx
5-
-cp ${HAXE_LIBCACHE}/coconut.ui/0.11.2/github/dc7be0000106d73896af483136527b4dc5ac3fc9/src
5+
-cp ${HAXE_LIBCACHE}/coconut.ui/0.11.2/github/1e1b05cf534daec805794e0deffea1050d1fa7b8/src
66
-D coconut.ui=0.11.2

haxe_libraries/tink_core.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# @install: lix --silent download "gh://github.com/haxetink/tink_core#35f1429b9671e6c9bef246cd852f934b1de4f877" into tink_core/2.0.0-rc.1/github/35f1429b9671e6c9bef246cd852f934b1de4f877
2-
-cp ${HAXE_LIBCACHE}/tink_core/2.0.0-rc.1/github/35f1429b9671e6c9bef246cd852f934b1de4f877/src
3-
-D tink_core=2.0.0-rc.1
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_core#83032eb4327a73d8dd90a36d720d0d30154bb300" into tink_core/2.0.1/github/83032eb4327a73d8dd90a36d720d0d30154bb300
2+
-cp ${HAXE_LIBCACHE}/tink_core/2.0.1/github/83032eb4327a73d8dd90a36d720d0d30154bb300/src
3+
-D tink_core=2.0.1

haxe_libraries/tink_csss.hxml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# @install: lix download https://github.com/haxetink/tink_csss/archive/0bb0e2ea5f8e6cec691ec26a257bccee549c6fca.tar.gz as tink_csss#0.0.0-alpha.0/0bb0e2ea5f8e6cec691ec26a257bccee549c6fca
2-
-D tink_csss=0.0.0-alpha.0
3-
-cp ${HAXESHIM_LIBCACHE}/tink_csss/0.0.0-alpha.0/0bb0e2ea5f8e6cec691ec26a257bccee549c6fca/src
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_csss#29ffeb6880a7bd8e6294b6bee1fd3150f5f1c72a" into tink_csss/0.2.3/github/29ffeb6880a7bd8e6294b6bee1fd3150f5f1c72a
2+
-lib tink_parse
3+
-cp ${HAXE_LIBCACHE}/tink_csss/0.2.3/github/29ffeb6880a7bd8e6294b6bee1fd3150f5f1c72a/src
4+
-D tink_csss=0.2.3

haxe_libraries/tink_hxx.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/haxetink/tink_hxx#a845da38b916d4cbebb7c5aae097c0e6d6167e5f" into tink_hxx/0.24.4/github/a845da38b916d4cbebb7c5aae097c0e6d6167e5f
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_hxx#0d6cda883d5ef4c1186dbad476e016b98aad68b8" into tink_hxx/0.25.0/github/0d6cda883d5ef4c1186dbad476e016b98aad68b8
22
-lib html-entities
33
-lib tink_anon
44
-lib tink_parse
5-
-cp ${HAXE_LIBCACHE}/tink_hxx/0.24.4/github/a845da38b916d4cbebb7c5aae097c0e6d6167e5f/src
6-
-D tink_hxx=0.24.4
5+
-cp ${HAXE_LIBCACHE}/tink_hxx/0.25.0/github/0d6cda883d5ef4c1186dbad476e016b98aad68b8/src
6+
-D tink_hxx=0.25.0

haxe_libraries/tink_io.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# @install: lix --silent download "haxelib:/tink_io#0.7.1" into tink_io/0.7.1/haxelib
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_io#406900053d727131ed1689f6cfa061ecc220f5a4" into tink_io/0.9.0/github/406900053d727131ed1689f6cfa061ecc220f5a4
22
-lib tink_chunk
33
-lib tink_streams
4-
-cp ${HAXE_LIBCACHE}/tink_io/0.7.1/haxelib/src
5-
-D tink_io=0.7.1
4+
-cp ${HAXE_LIBCACHE}/tink_io/0.9.0/github/406900053d727131ed1689f6cfa061ecc220f5a4/src
5+
-D tink_io=0.9.0

haxe_libraries/tink_lang.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-D tink_lang=0.6.2
2-
# @install: lix --silent download "gh://github.com/haxetink/tink_lang#895de3a5bd70dac380425d9938c613d6f9182540" into tink_lang/0.6.2/github/895de3a5bd70dac380425d9938c613d6f9182540
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_lang#e13fc181246e32680be6ff7543988aa1525b45cc" into tink_lang/0.7.0/github/e13fc181246e32680be6ff7543988aa1525b45cc
32
-lib tink_syntaxhub
4-
-cp ${HAXE_LIBCACHE}/tink_lang/0.6.2/github/895de3a5bd70dac380425d9938c613d6f9182540/src
3+
-cp ${HAXE_LIBCACHE}/tink_lang/0.7.0/github/e13fc181246e32680be6ff7543988aa1525b45cc/src
4+
-D tink_lang=0.7.0
55
--macro tink.lang.Sugar.use()

haxe_libraries/tink_macro.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_macro#0.20.0" into tink_macro/0.20.0/haxelib
1+
# @install: lix --silent download "gh://github.com/haxetink/tink_macro#f1010a518fdefb484eaff8727ff022ba51658e53" into tink_macro/0.23.0/github/f1010a518fdefb484eaff8727ff022ba51658e53
22
-lib tink_core
3-
-cp ${HAXE_LIBCACHE}/tink_macro/0.20.0/haxelib/src
4-
-D tink_macro=0.20.0
3+
-cp ${HAXE_LIBCACHE}/tink_macro/0.23.0/github/f1010a518fdefb484eaff8727ff022ba51658e53/src
4+
-D tink_macro=0.23.0

0 commit comments

Comments
 (0)