Skip to content

Commit

Permalink
Fix ci darwin arm64 (#639)
Browse files Browse the repository at this point in the history
* chore: prevent darwin arm64 broken deployment

* v1.0.11
  • Loading branch information
pahann authored Oct 18, 2023
1 parent 18c3030 commit 3121013
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,48 +49,6 @@ jobs:
with:
asset_paths: '["./build/stage/libxmljs/libxmljs/releases/download/**/*.tar.gz"]'

upload-macos-arm64:
strategy:
fail-fast: false
matrix:
config:
- { node-version: 8, npm-version: 6 }
- { node-version: 9, npm-version: 6 }
- { node-version: 10, npm-version: 6 }
- { node-version: 11, npm-version: 6 }
- { node-version: 12, npm-version: 8 }
- { node-version: 13, npm-version: 8 }
- { node-version: 14, npm-version: 8 }
- { node-version: 15, npm-version: 8 }
- { node-version: 16, npm-version: 8 }
- { node-version: 17, npm-version: 8 }
- { node-version: 18, npm-version: 8 }
- { node-version: 20, npm-version: 10 }
runs-on: macos-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.config.node-version }}
registry-url: https://registry.npmjs.org

- name: Package prebuilt binary
run: |
npm install -g npm@${{ matrix.config.npm-version }}
npm config set progress false
npm install --build-from-source
npm run package -- --target_arch=arm64 --target_platform=darwin 2>&1
npm run tsc
npm run test
- name: Upload release binary
uses: alexellis/upload-assets@0.3.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./build/stage/libxmljs/libxmljs/releases/download/**/*.tar.gz"]'

upload-windows:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"package_name": "{node_abi}-{platform}-{arch}.tar.gz"
},
"description": "libxml bindings for v8 javascript engine",
"version": "1.0.10",
"version": "1.0.11",
"repository": {
"type": "git",
"url": "http://github.com/libxmljs/libxmljs.git"
Expand Down

0 comments on commit 3121013

Please sign in to comment.