@@ -24,19 +24,24 @@ jobs:
24
24
continue-on-error : true
25
25
strategy :
26
26
matrix :
27
- os :
27
+ os :
28
+ - windows-2019
28
29
- ubuntu-20.04
29
- # since fibjs 0.37.0, windows-2019 not supported
30
- - windows-2022
31
30
- macos-11
32
- version : [0.34.0, 0.35.0, 0.36.0, 0.37.0]
31
+ fibjs : [0.34.0, 0.35.0, 0.36.0, 0.37.0]
33
32
arch : [amd64, i386]
34
33
exclude :
35
- - os : windows-2022
34
+ - os : windows-2019
36
35
arch : i386
37
36
- os : macos-11
38
37
arch : i386
39
-
38
+ include :
39
+ - os : windows-2022
40
+ arch : arm64
41
+ fibjs : 0.37.0
42
+ - os : macos-11
43
+ arch : arm64
44
+ fibjs : 0.37.0
40
45
steps :
41
46
- name : Check out Git repository
42
47
uses : actions/checkout@v2
@@ -55,26 +60,19 @@ jobs:
55
60
env :
56
61
ARCH : ${{ matrix.arch }}
57
62
OS : ${{ matrix.os }}
63
+ FIBJS_VERSION : ${{ matrix.fibjs }}
58
64
59
65
- name : Install FIBJS
60
66
shell : bash
61
67
run : |
62
68
mkdir -p ./node_modules/.bin;
63
69
rm -rf ./node_modules/.bin/fibjs;
64
- if [[ "$RUNNER_OS" == "Linux" ]]; then
65
- curl -SL "https://github.com/fibjs/fibjs/releases/download/v${FIBJS_VERSION}/fibjs-v${FIBJS_VERSION}-${FIBJS_OS}-${FIBJS_ARCH}.xz" -o ./node_modules/.bin/fibjs.xz;
66
- xz -d ./node_modules/.bin/fibjs.xz;
67
- chmod a+x ./node_modules/.bin/fibjs;
68
- elif [[ "$RUNNER_OS" == "macOS" ]]; then
69
- curl -SL "https://github.com/fibjs/fibjs/releases/download/v${FIBJS_VERSION}/fibjs-v${FIBJS_VERSION}-${FIBJS_OS}-${FIBJS_ARCH}" -o ./node_modules/.bin/fibjs;
70
- chmod a+x ./node_modules/.bin/fibjs;
71
- else
72
- curl -SL "https://github.com/fibjs/fibjs/releases/download/v${FIBJS_VERSION}/fibjs-v${FIBJS_VERSION}-${FIBJS_OS}-${FIBJS_ARCH}.exe" -o ./node_modules/.bin/fibjs.exe;
73
- fi
70
+ . ./.github/workflows/fns.sh --source-only
71
+ install_fibjs $FIBJS_VERSION $FIBJS_OS $FIBJS_ARCH;
74
72
env :
75
73
FIBJS_OS : ${{ steps.set-env-vars.outputs.FIBJS_OS }}
76
74
FIBJS_ARCH : ${{ steps.set-env-vars.outputs.FIBJS_ARCH }}
77
- FIBJS_VERSION : ${{ matrix.version }}
75
+ FIBJS_VERSION : ${{ matrix.fibjs }}
78
76
79
77
- name : Run CI
80
78
shell : bash
0 commit comments