Skip to content

Commit

Permalink
Update nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goddessfreya authored Dec 20, 2019
1 parent 2db0f18 commit 81c5ae6
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,31 @@ jobs:
matrix:
node-version: [8.x, 10.x, 12.x]
platform:
- { os: windows-latest, hunspell: true }
- { os: windows-latest, force-hunspell: true }
- { os: windows-latest }
- { os: macos-latest, hunspell: true }
- { os: macos-latest, force-hunspell: true }
- { os: macos-latest }
- { os: ubuntu-latest }
- { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ }
- { os: ubuntu-latest, use-clang: true }

runs-on: ${{ matrix.platform.os }}
env:
SPELLCHECKER_PREFER_HUNSPELL: ${{ matrix.platform.hunspell }}
CC: ${{ matrix.platform.c-compiler }}
CXX: ${{ matrix.platform.cpp-compiler }}

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Clang env
if: matrix.platform.use-clang == true
run: |
export CC="$(which clang)"
export CPP="$(which clang++)"
- name: npm install, build, and test
run: |
echo "Using $CC"
npm install
npm test
Expand All @@ -43,12 +47,9 @@ jobs:
- { os: windows-latest }
- { os: macos-latest }
- { os: ubuntu-latest }
- { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ }
- { os: ubuntu-latest, use-clang: true }

runs-on: ${{ matrix.platform.os }}
env:
CC: ${{ matrix.platform.c-compiler }}
CXX: ${{ matrix.platform.cpp-compiler }}

steps:
- uses: actions/checkout@v1
Expand All @@ -60,8 +61,14 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Clang env
if: matrix.platform.use-clang == true
run: |
export CC="$(which clang)"
export CPP="$(which clang++)"
- name: node-gyp install
run: |
echo "Using $CC"
npm install -g node-gyp
- name: node-gyp configure & build
run: |
Expand Down

0 comments on commit 81c5ae6

Please sign in to comment.