Bump nodejs version in gui.yml & create cli.yml

This commit is contained in:
Wizzard 2024-03-09 11:46:27 -05:00
parent 9a92b47a02
commit 5bc5fb7cad
2 changed files with 54 additions and 3 deletions

51
.github/workflows/cli.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: CLI Build
on: [push, pull_request]
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies (CLI)
run: cd cli && npm install
- name: Install pkg globally
run: npm install -g pkg
- name: Build CLI executables
run: |
cd cli
pkg kuzco-cli.js --targets node18-linux-x64,node18-macos-x64,node18-win-x64
- name: Rename executables
run: |
cd cli
mv kuzco-cli-linux kuzco-cli-linux-x64
mv kuzco-cli-macos kuzco-cli-macos-x64
mv kuzco-cli-win.exe kuzco-cli-win-x64.exe
- name: Upload Linux Executable
uses: actions/upload-artifact@v2
with:
name: kuzco-cli-linux-x64
path: cli/kuzco-cli-linux-x64
- name: Upload macOS Executable
uses: actions/upload-artifact@v2
with:
name: kuzco-cli-macos-x64
path: cli/kuzco-cli-macos-x64
- name: Upload Windows Executable
uses: actions/upload-artifact@v2
with:
name: kuzco-cli-win-x64.exe
path: cli/kuzco-cli-win-x64.exe

View File

@ -11,7 +11,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: '20'
- name: Install dependencies (GUI) - name: Install dependencies (GUI)
run: cd gui && npm install run: cd gui && npm install
@ -27,7 +27,7 @@ jobs:
- name: Upload Linux AppImage - name: Upload Linux AppImage
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: KuzcoChat-Linux name: KuzcoChat-Linux-Appimage
path: gui/dist/*.AppImage path: gui/dist/*.AppImage
- name: Upload Linux DEB - name: Upload Linux DEB
@ -50,7 +50,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: '20'
- name: Install dependencies (GUI) - name: Install dependencies (GUI)
run: cd gui && npm install run: cd gui && npm install