Skip to content

Commit

Permalink
test: update actions/checkout v2. change step timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-matsuzawa committed Mar 2, 2020
1 parent 2960a1e commit 4ccc50b
Showing 1 changed file with 49 additions and 10 deletions.
59 changes: 49 additions & 10 deletions .github/workflows/check_push_cmake_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,63 @@ env:
CMAKE_VERSION: 3.15.5

jobs:
cmake-js-build:
cmake-js-build-macos-node12:
name: cmake-js build
runs-on: macos-latest
strategy:
matrix:
node: [12]
# Windows is AES fail. (for windows server problem)
# https://github.com/actions/setup-node/issues/116

steps:
- uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: npm_install
run: npm install
- name: test
run: npm run ctest

cmake-js-build-macos-node13:
name: cmake-js build
needs: cmake-js-build-macos-node12
runs-on: macos-latest
strategy:
matrix:
node: [13]

steps:
- uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: npm_install
run: npm install
- name: test
run: npm run ctest

cmake-js-build-ubuntu-node8:
name: cmake-js build
needs: cmake-js-build-macos-node13
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
node: [8, 12, 13]
exclude:
- os: macos-latest
node: 8
- os: macos-latest
node: 13
os: [ubuntu-latest]
node: [8]

steps:
- uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v1
- name: cmake-useCache-ubuntu
if: matrix.os == 'ubuntu-latest'
uses: actions/cache@v1
Expand Down Expand Up @@ -91,7 +130,7 @@ jobs:
target: java

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: setup python
if: matrix.target == 'python'
uses: actions/setup-python@v1
Expand Down

0 comments on commit 4ccc50b

Please sign in to comment.