mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
c4ab6a4a8d
72
.github/workflows/release.yml
vendored
72
.github/workflows/release.yml
vendored
@ -1,23 +1,67 @@
|
|||||||
name: "publish"
|
name: "release"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target_platform: [linux,darwin]
|
||||||
|
target_arch: [x64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: Clone Main Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: setup node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
repository: 'NapNeko/NapCat'
|
||||||
|
submodules: true
|
||||||
- name: install dependenies
|
token: ${{ secrets.NAPCAT_BUILD }}
|
||||||
run: export ELECTRON_SKIP_BINARY_DOWNLOAD=1 && npm install
|
- name: Use Node.js 20.X
|
||||||
|
uses: actions/setup-node@v4
|
||||||
- name: build
|
with:
|
||||||
run: npm run build:prod
|
node-version: 20.x
|
||||||
|
- name: Build NuCat Linux
|
||||||
|
run: |
|
||||||
|
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||||
|
npm run build:prod
|
||||||
|
cd dist
|
||||||
|
npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||||
|
cd ..
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
|
||||||
|
path: dist
|
||||||
|
build-win32:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target_platform: [win32]
|
||||||
|
target_arch: [x64]
|
||||||
|
steps:
|
||||||
|
- name: Clone Main Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: 'NapNeko/NapCat'
|
||||||
|
submodules: true
|
||||||
|
token: ${{ secrets.NAPCAT_BUILD }}
|
||||||
|
- name: Use Node.js 20.X
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
- name: Build NuCat Linux
|
||||||
|
run: |
|
||||||
|
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||||
|
npm run build:prod
|
||||||
|
cd dist
|
||||||
|
npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||||
|
cd ..
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
|
||||||
|
path: dist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user