mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-14 16:51:23 +10:00
fix: build and package
This commit is contained in:
47
.github/workflows/CI.yml
vendored
47
.github/workflows/CI.yml
vendored
@ -146,53 +146,6 @@ jobs:
|
|||||||
name: bindings-${{ matrix.settings.target }}
|
name: bindings-${{ matrix.settings.target }}
|
||||||
path: ${{ env.APP_NAME }}.*.node
|
path: ${{ env.APP_NAME }}.*.node
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
build-freebsd:
|
|
||||||
runs-on: macos-13
|
|
||||||
name: Build FreeBSD
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Build
|
|
||||||
id: build
|
|
||||||
uses: cross-platform-actions/action@v0.24.0
|
|
||||||
env:
|
|
||||||
DEBUG: napi:*
|
|
||||||
RUSTUP_IO_THREADS: 1
|
|
||||||
with:
|
|
||||||
operating_system: freebsd
|
|
||||||
version: '13.2'
|
|
||||||
memory: 8G
|
|
||||||
cpu_count: 3
|
|
||||||
environment_variables: DEBUG RUSTUP_IO_THREADS
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sudo pkg install -y -f curl node libnghttp2 npm
|
|
||||||
sudo npm install -g yarn --ignore-scripts
|
|
||||||
curl https://sh.rustup.rs -sSf --output rustup.sh
|
|
||||||
sh rustup.sh -y --profile minimal --default-toolchain stable
|
|
||||||
source "$HOME/.cargo/env"
|
|
||||||
echo "~~~~ rustc --version ~~~~"
|
|
||||||
rustc --version
|
|
||||||
echo "~~~~ node -v ~~~~"
|
|
||||||
node -v
|
|
||||||
echo "~~~~ yarn --version ~~~~"
|
|
||||||
yarn --version
|
|
||||||
pwd
|
|
||||||
ls -lah
|
|
||||||
whoami
|
|
||||||
env
|
|
||||||
freebsd-version
|
|
||||||
yarn install
|
|
||||||
yarn build
|
|
||||||
yarn test
|
|
||||||
rm -rf node_modules
|
|
||||||
rm -rf target
|
|
||||||
rm -rf .yarn/cache
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: bindings-freebsd
|
|
||||||
path: ${{ env.APP_NAME }}.*.node
|
|
||||||
if-no-files-found: error
|
|
||||||
test-macOS-windows-binding:
|
test-macOS-windows-binding:
|
||||||
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
|
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
1
.npmrc
1
.npmrc
@ -1 +0,0 @@
|
|||||||
@drop:registry=https://lab.deepcore.dev/api/v4/projects/57/packages/npm/
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@drop/droplet",
|
"name": "@drop-oss/droplet",
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
@ -40,7 +40,7 @@
|
|||||||
"build": "napi build --platform --release",
|
"build": "napi build --platform --release",
|
||||||
"build:debug": "napi build --platform",
|
"build:debug": "napi build --platform",
|
||||||
"prepublishOnly": "napi prepublish -t npm",
|
"prepublishOnly": "napi prepublish -t npm",
|
||||||
"test": "ava",
|
"test": "ava __test__/*",
|
||||||
"universal": "napi universal",
|
"universal": "napi universal",
|
||||||
"version": "napi version"
|
"version": "napi version"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user