mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:58:31 +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
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
# pkg library doesn't have node 22 support
|
# 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
|
- name : Install nocodb, other dependencies and build executables
|
||||||
run: |
|
run: |
|
||||||
@@ -96,43 +96,45 @@ jobs:
|
|||||||
|
|
||||||
mkdir ./mac-dist
|
mkdir ./mac-dist
|
||||||
mkdir ./dist
|
mkdir ./dist
|
||||||
|
|
||||||
|
npm install -g @yao-pkg/pkg
|
||||||
|
|
||||||
# build darwin x64 executable
|
# build darwin x64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=x64 --os=darwin 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/
|
mv ./Noco-macos-x64 ./mac-dist/
|
||||||
|
|
||||||
# build darwin arm64 executable
|
# build darwin arm64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=arm64 --os=darwin 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/
|
mv ./Noco-macos-arm64 ./mac-dist/
|
||||||
|
|
||||||
|
|
||||||
# build linux x64 executable
|
# build linux x64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=x64 --os=linux 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/
|
mv ./Noco-linux-x64 ./dist/
|
||||||
|
|
||||||
# build linux arm64 executable
|
# build linux arm64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=arm64 --os=linux 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/
|
mv ./Noco-linux-arm64 ./dist/
|
||||||
|
|
||||||
|
|
||||||
# build windows x64 executable
|
# build windows x64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=x64 --os=win32 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/
|
mv ./Noco-win-x64.exe ./dist/
|
||||||
|
|
||||||
# build windows arm64 executable
|
# build windows arm64 executable
|
||||||
npm uninstall sharp
|
npm uninstall sharp
|
||||||
npm install --cpu=arm64 --os=win32 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/
|
mv ./Noco-win-arm64.exe ./dist/
|
||||||
|
|
||||||
- name: Upload executables to asset
|
- name: Upload executables to asset
|
||||||
|
|||||||
Reference in New Issue
Block a user