Skip to content

Commit

Permalink
ci: use node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Nov 22, 2023
1 parent 563c3ea commit 7eef4fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,19 @@ jobs:
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}-${{ matrix.target }}
- uses: mymindstorm/setup-emsdk@v12
- uses: mymindstorm/setup-emsdk@v13
if: ${{ contains(matrix.target, 'emscripten') }}
with:
version: ${{ env.EM_VERSION }}
# no-cache: true
actions-cache-folder: ${{ env.EM_CACHE_FOLDER }}
- uses: actions-rs/toolchain@v1
if: ${{ matrix.target == 'wasm32-unknown-unknown' || matrix.target == 'wasm32-wasi' }}
with:
toolchain: nightly
default: true
target: ${{ matrix.target }}

# - uses: actions-rs/toolchain@v1
# if: ${{ matrix.target == 'wasm32-unknown-unknown' || matrix.target == 'wasm32-wasi' }}
# with:
# toolchain: nightly
# default: true
# target: ${{ matrix.target }}

- name: Install wasi-sdk
if: ${{ matrix.target == 'wasm32-unknown-unknown' || matrix.target == 'wasm32-wasi' || matrix.target == 'wasm32-wasi-threads' }}
Expand All @@ -67,7 +68,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ (contains(matrix.target, 'emscripten') && matrix.target == 'wasm64-unknown-emscripten' && '20.8.1') || '18.18.2' }}
node-version: '20.9.0'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -132,7 +133,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install ninja-build
- uses: mymindstorm/setup-emsdk@v12
- uses: mymindstorm/setup-emsdk@v13
with:
version: ${{ env.EM_VERSION }}
# no-cache: true
Expand All @@ -145,7 +146,7 @@ jobs:
tar zxvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz -C $WASI_SDK_PATH --strip 1
- uses: actions/setup-node@v3
with:
node-version: '18.18.2'
node-version: '20.9.0'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@tybys/ts-transform-pure-class": "^0.1.1",
"@tybys/tsapi": "^0.6.0",
"@types/fs-extra": "^9.0.13",
"@types/node": "^18.16.18",
"@types/node": "^20.9.4",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
Expand Down

0 comments on commit 7eef4fe

Please sign in to comment.