diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b971d4e..b756a0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: + arch: + - x64 + - x86 node: - 12 - 14 @@ -17,19 +20,21 @@ jobs: - macOS-latest - ubuntu-16.04 - windows-latest + exclude: + - arch: x86 + os: macOS-latest + - arch: x86 + os: ubuntu-16.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} + architecture: ${{ matrix.arch }} - run: npm install - run: npm test - run: npm run prebuild if: matrix.node == 14 && startsWith(github.ref, 'refs/tags/') - - run: npm run prebuild-ia32 - if: - matrix.node == 14 && matrix.os == 'windows-latest' && - startsWith(github.ref, 'refs/tags/') - run: npm run prebuild-linux-arm if: matrix.node == 14 && matrix.os == 'ubuntu-16.04' && diff --git a/README.md b/README.md index 88af3a5..7b82923 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # utf-8-validate [![Version npm](https://img.shields.io/npm/v/utf-8-validate.svg)](https://www.npmjs.com/package/utf-8-validate) -[![Build Status](https://img.shields.io/github/workflow/status/websockets/utf-8-validate/CI/master?label=build)](https://github.com/websockets/utf-8-validate/actions?query=workflow%3ACI+branch%3Amaster) -[![Windows x86 Build](https://ci.appveyor.com/api/projects/status/github/websockets/utf-8-validate?branch=master&svg=true)](https://ci.appveyor.com/project/lpinca/utf-8-validate) +[![Linux/macOS/Windows Build](https://img.shields.io/github/workflow/status/websockets/utf-8-validate/CI/master?label=build)](https://github.com/websockets/utf-8-validate/actions?query=workflow%3ACI+branch%3Amaster) Check if a buffer contains valid UTF-8 encoded text. diff --git a/package.json b/package.json index e90584c..12a1002 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "scripts": { "install": "node-gyp-build", "prebuild": "prebuildify --napi --strip", - "prebuild-ia32": "prebuildify --arch=ia32 --napi --strip", "prebuild-linux-arm": "prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64 --napi --strip", "test": "mocha" },