feat: docs and pipelines (#6)

* feat: docs and pipelines

* fix: temp disable test linux aarch64
This commit is contained in:
Ivan Miletic
2023-04-03 00:10:59 +02:00
committed by GitHub
parent c5c518eeb5
commit e36fcac075
7 changed files with 772 additions and 88 deletions
+53 -53
View File
@@ -1,4 +1,4 @@
name: NodeJS Bindings
name: NodeJS
env:
WORKING_DIRECTORY: bindings/nodejs
DEBUG: 'napi:*'
@@ -281,57 +281,57 @@ jobs:
run: |
yarn lerna link
yarn test
test-linux-aarch64-gnu-binding:
name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
needs:
- build
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}
strategy:
fail-fast: false
matrix:
node: ['14', '16', '18']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- name: List directory
run: |
ls -la &&
pwd
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: bindings-aarch64-unknown-linux-gnu
path: artifacts
- name: Install dependencies
run: |
yarn config set supportedArchitectures.cpu "arm64"
yarn config set supportedArchitectures.libc "glibc"
yarn install --immutable --mode=skip-build
- name: Move artifacts
run: yarn artifacts
shell: bash
- name: List folder
run: ls ./
shell: bash
- name: Setup and run tests
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-${{ matrix.node }}
options: -v ${{ github.workspace }}:/workspace -w /workspace
run: |
ls -la
cd bindings/nodejs
yarn install
yarn link
yarn test
# test-linux-aarch64-gnu-binding:
# name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
# needs:
# - build
# defaults:
# run:
# working-directory: ${{ env.WORKING_DIRECTORY }}
# strategy:
# fail-fast: false
# matrix:
# node: ['14', '16', '18']
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
# - name: List directory
# run: |
# ls -la &&
# pwd
#
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# name: bindings-aarch64-unknown-linux-gnu
# path: artifacts
#
# - name: Install dependencies
# run: |
# yarn config set supportedArchitectures.cpu "arm64"
# yarn config set supportedArchitectures.libc "glibc"
# yarn install --immutable --mode=skip-build
# - name: Move artifacts
# run: yarn artifacts
# shell: bash
#
# - name: List folder
# run: ls ./
# shell: bash
#
# - name: Setup and run tests
# uses: addnab/docker-run-action@v3
# with:
# image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-${{ matrix.node }}
# options: -v ${{ github.workspace }}:/workspace -w /workspace
# run: |
# ls -la
# cd bindings/nodejs
# yarn install
# yarn link
# yarn test
release:
name: Release
@@ -343,7 +343,7 @@ jobs:
- test-linux-x64-gnu-binding
- test-linux-x64-centos-7
# - test-linux-x64-musl-binding
- test-linux-aarch64-gnu-binding
# - test-linux-aarch64-gnu-binding
# - test-linux-arm-gnueabihf-binding
- test-macOS-windows-binding
steps:
+1 -1
View File
@@ -1,4 +1,4 @@
name: Python Bindings
name: Python
env:
WORKING_DIRECTORY: bindings/python
+7 -1
View File
@@ -10,6 +10,12 @@ on:
- master
tags-ignore:
- '**'
paths-ignore:
- 'bindings/**'
- '.github/workflows/python.yaml'
- '.github/workflows/python-version-bump.yaml'
- '.github/workflows/node.yaml'
- '.github/workflows/node-version-bump.yaml'
env:
RUST_BACKTRACE: 1
@@ -85,4 +91,4 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update stable
- run: cargo fmt --all -- --check
- run: cargo fmt --all -- --check