|
9 | 9 | matrix: |
10 | 10 | node-version: [8.x, 10.x, 12.x] |
11 | 11 | platform: |
12 | | - - { os: windows-latest, hunspell: true } |
| 12 | + - { os: windows-latest, force-hunspell: true } |
13 | 13 | - { os: windows-latest } |
14 | | - - { os: macos-latest, hunspell: true } |
| 14 | + - { os: macos-latest, force-hunspell: true } |
15 | 15 | - { os: macos-latest } |
16 | 16 | - { os: ubuntu-latest } |
17 | | - - { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ } |
| 17 | + - { os: ubuntu-latest, use-clang: true } |
18 | 18 |
|
19 | 19 | runs-on: ${{ matrix.platform.os }} |
20 | 20 | env: |
21 | 21 | SPELLCHECKER_PREFER_HUNSPELL: ${{ matrix.platform.hunspell }} |
22 | | - CC: ${{ matrix.platform.c-compiler }} |
23 | | - CXX: ${{ matrix.platform.cpp-compiler }} |
24 | 22 |
|
25 | 23 | steps: |
26 | 24 | - uses: actions/checkout@v1 |
27 | 25 | - name: Use Node.js ${{ matrix.node-version }} |
28 | 26 | uses: actions/setup-node@v1 |
29 | 27 | with: |
30 | 28 | node-version: ${{ matrix.node-version }} |
| 29 | + - name: Clang env |
| 30 | + if: matrix.platform.use-clang == true |
| 31 | + run: | |
| 32 | + export CC="$(which clang)" |
| 33 | + export CPP="$(which clang++)" |
31 | 34 | - name: npm install, build, and test |
32 | 35 | run: | |
| 36 | + echo "Using $CC" |
33 | 37 | npm install |
34 | 38 | npm test |
35 | 39 |
|
|
43 | 47 | - { os: windows-latest } |
44 | 48 | - { os: macos-latest } |
45 | 49 | - { os: ubuntu-latest } |
46 | | - - { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ } |
| 50 | + - { os: ubuntu-latest, use-clang: true } |
47 | 51 |
|
48 | 52 | runs-on: ${{ matrix.platform.os }} |
49 | | - env: |
50 | | - CC: ${{ matrix.platform.c-compiler }} |
51 | | - CXX: ${{ matrix.platform.cpp-compiler }} |
52 | 53 |
|
53 | 54 | steps: |
54 | 55 | - uses: actions/checkout@v1 |
|
60 | 61 | uses: actions/setup-python@v1 |
61 | 62 | with: |
62 | 63 | python-version: ${{ matrix.python-version }} |
| 64 | + - name: Clang env |
| 65 | + if: matrix.platform.use-clang == true |
| 66 | + run: | |
| 67 | + export CC="$(which clang)" |
| 68 | + export CPP="$(which clang++)" |
63 | 69 | - name: node-gyp install |
64 | 70 | run: | |
| 71 | + echo "Using $CC" |
65 | 72 | npm install -g node-gyp |
66 | 73 | - name: node-gyp configure & build |
67 | 74 | run: | |
|
0 commit comments