Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed May 6, 2024
1 parent 61e747a commit a6eed2a
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 83 deletions.
164 changes: 82 additions & 82 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
fail-fast: false
matrix:
settings:
# - host: macos-latest
# target: x86_64-apple-darwin
# build: yarn build
# - host: windows-latest
# build: yarn build
# target: x86_64-pc-windows-msvc
# - host: ubuntu-latest
# target: x86_64-unknown-linux-gnu
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
# build: yarn build --target x86_64-unknown-linux-gnu
- host: macos-latest
target: x86_64-apple-darwin
build: yarn build
- host: windows-latest
build: yarn build
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: yarn build --target x86_64-unknown-linux-gnu
- host: macos-latest
target: aarch64-apple-darwin
build: yarn build --target aarch64-apple-darwin
Expand Down Expand Up @@ -108,82 +108,82 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ./**/${{ env.APP_NAME }}.*.node
if-no-files-found: error
# test-macOS-windows-binding:
# name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
# needs:
# - build
# strategy:
# fail-fast: false
# matrix:
# settings:
# - host: macos-latest
# target: x86_64-apple-darwin
# - host: windows-latest
# target: x86_64-pc-windows-msvc
# node:
# - '18'
# - '20'
# runs-on: ${{ matrix.settings.host }}
# steps:
# - uses: actions/checkout@v4
# - name: Setup node
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node }}
# cache: yarn
# cache-dependency-path: ./bindings/node
# - name: Install dependencies
# run: yarn install
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: bindings-${{ matrix.settings.target }}
# path: .
# - name: List packages
# run: ls -R .
# shell: bash
# - name: Test bindings
# run: yarn test
# test-linux-x64-gnu-binding:
# name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
# needs:
# - build
# strategy:
# fail-fast: false
# matrix:
# node:
# - '18'
# - '20'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Setup node
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node }}
# cache: yarn
# cache-dependency-path: ./bindings/node
# env:
# DISABLE_V8_COMPILE_CACHE: 1
# - name: Install dependencies
# run: yarn install
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: bindings-x86_64-unknown-linux-gnu
# path: .
# - name: List packages
# run: ls -R .
# shell: bash
# - name: Test bindings
# run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
test-macOS-windows-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
- build
strategy:
fail-fast: false
matrix:
settings:
- host: macos-latest
target: x86_64-apple-darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
- '18'
- '20'
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: ./bindings/node
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: .
- name: List packages
run: ls -R .
shell: bash
- name: Test bindings
run: yarn test
test-linux-x64-gnu-binding:
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
needs:
- build
strategy:
fail-fast: false
matrix:
node:
- '18'
- '20'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: ./bindings/node
env:
DISABLE_V8_COMPILE_CACHE: 1
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-gnu
path: .
- name: List packages
run: ls -R .
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- build
# - test-macOS-windows-binding
# - test-linux-x64-gnu-binding
- build
- test-macOS-windows-binding
- test-linux-x64-gnu-binding
steps:
- uses: actions/checkout@v4
- name: Setup node
Expand Down
2 changes: 1 addition & 1 deletion bindings/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rookie-rs/api",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down

0 comments on commit a6eed2a

Please sign in to comment.