22
.github/workflows/node-ci.yml
vendored
22
.github/workflows/node-ci.yml
vendored
@@ -69,7 +69,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- runs-on: ubuntu-20.04
|
||||
- runs-on: ubuntu-22.04
|
||||
arch: x86_64
|
||||
- runs-on: [self-hosted, linux, ARM64]
|
||||
arch: arm64
|
||||
@@ -128,9 +128,7 @@ jobs:
|
||||
libcurl4-openssl-dev \
|
||||
libglfw3-dev \
|
||||
libuv1-dev \
|
||||
g++-10 \
|
||||
libc++-9-dev \
|
||||
libc++abi-9-dev \
|
||||
g++-12 \
|
||||
libjpeg-dev \
|
||||
libpng-dev \
|
||||
libwebp-dev
|
||||
@@ -139,7 +137,7 @@ jobs:
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
|
||||
- name: npm ci
|
||||
run: npm ci --ignore-scripts
|
||||
@@ -148,6 +146,14 @@ jobs:
|
||||
if: runner.os == 'Windows'
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
# Fixes an issue with the image causing builds to fail - https://github.com/actions/runner-images/issues/8598
|
||||
- name: Remove Strawberry Perl from PATH (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
shell: pwsh
|
||||
run: |
|
||||
$env:PATH = $env:PATH -replace "C:\\Strawberry\\c\\bin;", ""
|
||||
"PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
|
||||
- name: Setup cmake (Linux)
|
||||
if: runner.os == 'Linux' && runner.arch != 'arm64'
|
||||
uses: jwlawson/actions-setup-cmake@v1.14
|
||||
@@ -199,8 +205,8 @@ jobs:
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }} \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||
-DCMAKE_C_COMPILER=gcc-10 \
|
||||
-DCMAKE_CXX_COMPILER=g++-10 \
|
||||
-DCMAKE_C_COMPILER=gcc-12 \
|
||||
-DCMAKE_CXX_COMPILER=g++-12 \
|
||||
-DMLN_WITH_NODE=ON
|
||||
|
||||
- name: "Create directory '${{ github.workspace }}/platform/windows/vendor/vcpkg/bincache' (Windows)"
|
||||
@@ -267,7 +273,7 @@ jobs:
|
||||
GALLIUM_DRIVER: softpipe
|
||||
run: |
|
||||
Invoke-WebRequest https://github.com/pal1000/mesa-dist-win/releases/download/22.3.5/mesa3d-22.3.5-release-msvc.7z -OutFile mesa3d.7z
|
||||
& 'C:\Program Files\7-Zip\7z.exe' e -olib\node-v108 .\mesa3d.7z x64\opengl32.dll x64\libgallium_wgl.dll x64\libGLESv2.dll x64\libglapi.dll
|
||||
& 'C:\Program Files\7-Zip\7z.exe' e -olib\node-v115 .\mesa3d.7z x64\opengl32.dll x64\libgallium_wgl.dll x64\libGLESv2.dll x64\libglapi.dll
|
||||
npm test
|
||||
|
||||
# On PRs make sure that the npm package can be packaged.
|
||||
|
||||
Reference in New Issue
Block a user