15
15
workflow_dispatch :
16
16
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
17
17
18
+ defaults :
19
+ run :
20
+ shell : bash
21
+
18
22
env :
19
23
# https://docs.brew.sh/Manpage#environment
20
24
HOMEBREW_NO_ANALYTICS : 1
@@ -39,13 +43,13 @@ jobs:
39
43
40
44
steps :
41
45
- name : Show environment variables
42
- shell : bash
43
46
run : env | sort
44
47
45
48
- name : Git Checkout
46
49
uses : actions/checkout@v3 # https://github.com/actions/checkout
47
50
48
51
- name : " Cache: Haxelib Repository"
52
+ if : ${{ !env.ACT }}
49
53
uses : actions/cache@v3
50
54
with :
51
55
path : ${{ runner.tool_cache }}/haxe/${{ matrix.haxe }}/x64/lib
@@ -54,14 +58,17 @@ jobs:
54
58
restore-keys : |
55
59
${{ runner.os }}-haxelib-${{ matrix.haxe }}-
56
60
57
- - name : Update brew formulas
61
+ - name : " MacOS: Update brew formulas"
58
62
if : runner.os == 'macOS'
59
63
run : |
64
+ set -eu
65
+
60
66
echo "::group::brew update" && brew update && echo "::endgroup::"
61
67
echo "::group::brew config" && brew config && echo "::endgroup::"
62
68
echo "::group::brew list" && brew list --version && echo "::endgroup::"
63
69
64
70
# workaround to prevent "Error: The `brew link` step did not complete successfully" during "brew install mono"
71
+ # and setup-python action, see https://github.com/actions/setup-python/issues/577
65
72
rm -f \
66
73
/usr/local/share/man/man1/* \
67
74
/usr/local/share/man/man5/* \
72
79
/usr/local/bin/python3 \
73
80
/usr/local/bin/python3-config
74
81
75
- - name : " Install: Python 3"
76
- uses : actions/setup-python@v4 # https://github.com/actions/setup-python
77
- with :
78
- python-version : " 3.10"
79
-
80
- - name : Configure Python 3 on Windows
81
- if : runner.os == 'Windows'
82
- shell : cmd
83
- # workaround for https://github.com/actions/setup-python/issues/123
84
- run :
85
- if not exist "%pythonLocation%\python.exe" (
86
- mklink "%pythonLocation%\python3.exe" "%pythonLocation%\python.exe"
87
- )
88
-
89
82
- name : " Install Hashlink"
90
83
if : runner.os == 'Linux'
91
84
run : |
@@ -102,14 +95,35 @@ jobs:
102
95
echo "/opt/hashlink" >> $GITHUB_PATH
103
96
fi
104
97
98
+ - name : " Install: Java 11"
99
+ uses : actions/setup-java@v3
100
+ with :
101
+ distribution : ' temurin'
102
+ java-version : 11
103
+
104
+ - name : " Install: Python 3"
105
+ uses : actions/setup-python@v4 # https://github.com/actions/setup-python
106
+ with :
107
+ python-version : " 3.10"
108
+
109
+ - name : Configure Python 3 on Windows
110
+ if : runner.os == 'Windows'
111
+ shell : cmd
112
+ # workaround for https://github.com/actions/setup-python/issues/123
113
+ run :
114
+ if not exist "%pythonLocation%\python.exe" (
115
+ mklink "%pythonLocation%\python3.exe" "%pythonLocation%\python.exe"
116
+ )
117
+
105
118
- name : " Install: Haxe ${{ matrix.haxe }}"
106
119
uses : krdlab/setup-haxe@v1 # https://github.com/krdlab/setup-haxe
107
120
with :
108
121
haxe-version : ${{ matrix.haxe }}
109
122
110
123
- name : " Install: Haxe Libraries"
111
- shell : bash
112
124
run : |
125
+ set -eu
126
+
113
127
haxelib config
114
128
115
129
for lib in hx3compat hscript munit tink_testrunner utest; do
@@ -188,6 +202,7 @@ jobs:
188
202
189
203
steps :
190
204
- name : " Delete intermediate build artifacts"
205
+ if : ${{ !env.ACT }}
191
206
uses : geekyeggo/delete-artifact@v2 # https://github.com/GeekyEggo/delete-artifact/
192
207
with :
193
208
name : " *"
0 commit comments