Skip to content

Commit 7c28e13

Browse files
authored
Merge pull request #20 from neguse/agent/ci-unify-parallel
2 parents f8eb0b8 + 22c8db6 commit 7c28e13

12 files changed

Lines changed: 906 additions & 417 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# scripts/install-haxe5.sh で Haxe 5 を導入し、LUB_HAXE / PATH (+ Windows は
2+
# NEKOPATH) を後続ステップへ引き継ぐ。導入ディレクトリはスクリプトのハッシュを
3+
# key にキャッシュする (スクリプトは冪等で、cache hit 時も haxelib setup と
4+
# haxelib dev lub の登録は毎回やり直す)。
5+
# Linux で haxelib を使う job は別途 neko パッケージ (libneko) が要る。
6+
name: Setup Haxe 5
7+
description: Install Haxe 5 via scripts/install-haxe5.sh and export LUB_HAXE / PATH / NEKOPATH
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Cache haxe5 install
12+
uses: actions/cache@v4
13+
with:
14+
path: ~/haxe5
15+
key: haxe5-${{ runner.os }}-${{ hashFiles('scripts/install-haxe5.sh') }}
16+
17+
- name: Install Haxe 5 + haxelib dev lub
18+
shell: bash
19+
run: |
20+
scripts/install-haxe5.sh "$HOME/haxe5"
21+
case "$(uname -s)" in
22+
MINGW* | MSYS*)
23+
echo "LUB_HAXE=$(cygpath -m "$HOME/haxe5/haxe.exe")" >> "$GITHUB_ENV"
24+
# haxelib.exe は neko 依存。install が haxe dir に同居させた ndll を
25+
# 指す NEKOPATH を後続ステップへ引き継ぐ (neko.dll は exe 隣で解決)。
26+
echo "NEKOPATH=$(cygpath -m "$HOME/haxe5")" >> "$GITHUB_ENV"
27+
# haxe.exe は haxelib を PATH lookup で起動する (bare name) ので
28+
# PATH に足さないと "'haxelib' is not recognized" になる。
29+
cygpath -w "$HOME/haxe5" >> "$GITHUB_PATH"
30+
;;
31+
*)
32+
echo "LUB_HAXE=$HOME/haxe5/haxe" >> "$GITHUB_ENV"
33+
echo "$HOME/haxe5" >> "$GITHUB_PATH"
34+
;;
35+
esac

0 commit comments

Comments
 (0)