Fix Linux Binary Creation (#66)
* Update linux.yml * Update linux.yml * Update linux.yml * Update package.json * Update package-lock.json * Revert * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Add dependency on nan * Update macos.yml * Update windows.yml * Update windows.yml * Update windows.yml * Update windows.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux.yml * Update linux and mac * Update macos.yml * Update linux.yml * Update linux.yml * Update linux.yml * Remove publish. Will manually upload for now. * Trigger builds. * Revert github action triggers.
This commit is contained in:
Родитель
5e786c4614
Коммит
f8e3e8521f
|
@ -7,7 +7,7 @@ env:
|
|||
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: true
|
||||
|
@ -19,17 +19,17 @@ jobs:
|
|||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm install
|
||||
- run: npm run build:ts
|
||||
- run: npm run build
|
||||
- run: if [[ ${{ matrix.node-version }} == 14 ]]; then npm run lint; fi;
|
||||
- run: npm run package
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: linux_artifact_${{ matrix.node-version }}
|
||||
path: build/stage/
|
||||
retention-days: 1
|
||||
- name: Publish
|
||||
# Publish not compatible with node 8, need to manually upload the files
|
||||
if: ${{ matrix.node-version != '8' }}
|
||||
run: npm run publish:github
|
||||
# - name: Publish
|
||||
# # Publish not compatible with node 8, need to manually upload the files
|
||||
# if: ${{ matrix.node-version != '8' }}
|
||||
# run: npm run publish:github
|
||||
|
|
@ -8,19 +8,26 @@ env:
|
|||
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-12
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
node-version: [8, 10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install setuptools
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- run: python3 -m pip install setuptools
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm install
|
||||
- run: npm run build:ts
|
||||
- run: npm run build
|
||||
- run: npm run package
|
||||
|
@ -29,7 +36,9 @@ jobs:
|
|||
name: macos_artifact_${{ matrix.node-version }}
|
||||
path: build/stage/
|
||||
retention-days: 1
|
||||
- name: Publish
|
||||
# Publish not compatible with node 8, need to manually upload the files
|
||||
if: ${{ matrix.node-version != '8' }}
|
||||
run: npm run publish:github
|
||||
# - name: Publish
|
||||
# # Publish not compatible with node 8, need to manually upload the files
|
||||
# if: ${{ matrix.node-version != '8' }}
|
||||
# run: npm run publish:github
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm install
|
||||
- run: npm run build:ts
|
||||
- run: npm run build
|
||||
- run: npm run package:windows
|
||||
|
@ -33,6 +33,8 @@ jobs:
|
|||
# Publish not compatible with node 8, need to manually upload the files
|
||||
if: ${{ matrix.node-version != 8 }}
|
||||
run: npm i @mmomtchev/node-pre-gyp-github
|
||||
- name: Publish
|
||||
if: ${{ matrix.node-version != 8 }}
|
||||
run: npm run publish:github:windows
|
||||
# - name: Publish
|
||||
# if: ${{ matrix.node-version != 8 }}
|
||||
# run: npm run publish:github:windows
|
||||
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@mapbox/node-pre-gyp": "^1.0.11",
|
||||
"nan": "^2.17.0"
|
||||
"nan": "^2.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^11.15.54",
|
||||
|
@ -2149,9 +2149,9 @@
|
|||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||
},
|
||||
"node_modules/nan": {
|
||||
"version": "2.17.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",
|
||||
"integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ=="
|
||||
"version": "2.20.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz",
|
||||
"integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw=="
|
||||
},
|
||||
"node_modules/nanoid": {
|
||||
"version": "3.3.3",
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@mapbox/node-pre-gyp": "^1.0.11",
|
||||
"nan": "^2.17.0"
|
||||
"nan": "^2.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^11.15.54",
|
||||
|
|
Загрузка…
Ссылка в новой задаче