Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Switch CI to N-API builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Nov 18, 2020
1 parent e296c40 commit 560a829
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,17 @@ jobs:
if: ${{ matrix.os != 'ubuntu-16.04' }}
name: Run tests (Windows/macOS)

- run: |
npm run prebuild-node
npm run prebuild-electron
- run: npm run prebuild-napi-x64
name: Prebuild (x64)

- run: npm run prebuild-electron-arm64
if: ${{ matrix.os != 'macos-latest' }}
name: Prebuild for Electron (ARM64)

- run: |
npm run prebuild-napi-arm64
docker build -t node-keytar/i386 docker/i386
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-node-ia32 && npm run prebuild-electron-ia32"
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32"
if: ${{ matrix.os == 'ubuntu-16.04' }}
name: Prebuild (x86)
name: Prebuild (x86 and arm64)
- run: |
npm run prebuild-node-ia32
npm run prebuild-electron-ia32
- run: npm run prebuild-napi-ia32
if: ${{ matrix.os == 'windows-latest' }}
name: Prebuild (x86)

Expand Down
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
sudo: required
dist: trusty
dist: focal
os:
- linux
- osx
Expand Down Expand Up @@ -50,7 +50,6 @@ install:
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run ./script/cibuild; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm test; fi
- npm run prebuild-node
- npm run prebuild-electron
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t node-keytar/i386 docker/i386 && docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-node-ia32 && npm run prebuild-electron-ia32 && npm run prebuild-electron-arm64"; fi
- npm run prebuild-napi-x64
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run prebuild-napi-arm64 && docker build -t node-keytar/i386 docker/i386 && docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32"; fi
- if [[ -n "$TRAVIS_TAG" ]]; then npm run upload; fi
9 changes: 3 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "{build}"

image: Visual Studio 2017
image: Visual Studio 2019
platform:
- x64

Expand All @@ -22,11 +22,8 @@ install:

build_script:
- npm test
- npm run prebuild-node
- npm run prebuild-node-ia32
- npm run prebuild-electron
- npm run prebuild-electron-ia32
- npm run prebuild-electron-arm64
- npm run prebuild-napi-x64
- npm run prebuild-napi-ia32
- if defined APPVEYOR_REPO_TAG_NAME (npm run upload)

test: off
Expand Down

0 comments on commit 560a829

Please sign in to comment.