Skip to content

Commit

Permalink
feat: new napi implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Jun 20, 2022
1 parent c1f55c2 commit e4e56b8
Show file tree
Hide file tree
Showing 12 changed files with 512 additions and 14 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GDLauncher Next CI
name: GDLauncher CI

on:
push:
Expand Down Expand Up @@ -26,10 +26,28 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Use Node.js 14.16.0
- name: Use Node.js 16.13.1
uses: actions/setup-node@v1
with:
node-version: '14.16.0'
node-version: '16.13.1'


- name: Install rust (Windows)
if: matrix.os == 'windows-latest'
run: |
rustup target add x86_64-pc-windows-msvc --toolchain nightly
- name: Install rust (MacOS)
if: matrix.os == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin --toolchain nightly
- name: Install rust (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
- name: Switch rust to nightly
run: |
rustup default nightly
- name: npm run install
run: |
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
/build
/release
/deploy
/public/native/*/napi.node
/public/native/*/index.d.ts

# rust target
/target
/napi/target
/public/napi.node
/napi/napi.node
/napi/node_modules
/napi/index.d.ts

# IDEs
.idea
Expand Down

0 comments on commit e4e56b8

Please sign in to comment.