mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 22:18:07 +00:00
chore: executable build action
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
16
.github/workflows/release-executables.yml
vendored
16
.github/workflows/release-executables.yml
vendored
@@ -64,7 +64,7 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
# pkg library doesn't have node 22 support
|
||||
node-version: 18.19.1
|
||||
node-version: 22.12.0
|
||||
|
||||
- name : Install nocodb, other dependencies and build executables
|
||||
run: |
|
||||
@@ -97,42 +97,44 @@ jobs:
|
||||
mkdir ./mac-dist
|
||||
mkdir ./dist
|
||||
|
||||
npm install -g @yao-pkg/pkg
|
||||
|
||||
# build darwin x64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=x64 --os=darwin sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-macos-x64 -o Noco-macos-x64
|
||||
pkg . --compress GZip -t node22-macos-x64 -o Noco-macos-x64
|
||||
mv ./Noco-macos-x64 ./mac-dist/
|
||||
|
||||
# build darwin arm64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=arm64 --os=darwin sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-macos-arm64 -o Noco-macos-arm64
|
||||
pkg . --compress GZip -t node22-macos-arm64 -o Noco-macos-arm64
|
||||
mv ./Noco-macos-arm64 ./mac-dist/
|
||||
|
||||
|
||||
# build linux x64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=x64 --os=linux sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-linux-x64 -o Noco-linux-x64
|
||||
pkg . --compress GZip -t node22-linux-x64 -o Noco-linux-x64
|
||||
mv ./Noco-linux-x64 ./dist/
|
||||
|
||||
# build linux arm64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=arm64 --os=linux sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-linux-arm64 -o Noco-linux-arm64
|
||||
pkg . --compress GZip -t node22-linux-arm64 -o Noco-linux-arm64
|
||||
mv ./Noco-linux-arm64 ./dist/
|
||||
|
||||
|
||||
# build windows x64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=x64 --os=win32 sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-win-x64 -o Noco-win-x64.exe
|
||||
pkg . --compress GZip -t node22-win-x64 -o Noco-win-x64.exe
|
||||
mv ./Noco-win-x64.exe ./dist/
|
||||
|
||||
# build windows arm64 executable
|
||||
npm uninstall sharp
|
||||
npm install --cpu=arm64 --os=win32 sharp
|
||||
npx --yes pkg@5.8.1 . --compress GZip -t node18-win-arm64 -o Noco-win-arm64.exe
|
||||
pkg . --compress GZip -t node22-win-arm64 -o Noco-win-arm64.exe
|
||||
mv ./Noco-win-arm64.exe ./dist/
|
||||
|
||||
- name: Upload executables to asset
|
||||
|
||||
Reference in New Issue
Block a user