|
|
|
@ -21,19 +21,15 @@ jobs:
|
|
|
|
|
build-executables: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- name: Setup pnpm |
|
|
|
|
uses: pnpm/action-setup@v2 |
|
|
|
|
with: |
|
|
|
|
version: 8 |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- name: Cache node modules |
|
|
|
|
id: cache-pnpm |
|
|
|
|
id: cache-npm |
|
|
|
|
uses: actions/cache@v3 |
|
|
|
|
env: |
|
|
|
|
cache-name: cache-node-modules |
|
|
|
|
with: |
|
|
|
|
# pnpm cache files are stored in `~/.pnpm` on Linux/macOS |
|
|
|
|
path: ~/.pnpm |
|
|
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS |
|
|
|
|
path: ~/.npm |
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
@ -75,10 +71,10 @@ jobs:
|
|
|
|
|
cd ./scripts/pkg-executable |
|
|
|
|
|
|
|
|
|
# Install nocodb version based on provided tag name |
|
|
|
|
pnpm i -E nocodb@${{ github.event.inputs.tag || inputs.tag }} |
|
|
|
|
npm i -E nocodb@${{ github.event.inputs.tag || inputs.tag }} |
|
|
|
|
|
|
|
|
|
# install pnpm dependendencies |
|
|
|
|
pnpm i |
|
|
|
|
# install npm dependendencies |
|
|
|
|
npm i |
|
|
|
|
|
|
|
|
|
# Build sqlite binaries for all platforms |
|
|
|
|
./node_modules/.bin/node-pre-gyp install --directory=./node_modules/sqlite3 --target_platform=win32 --fallback-to-build --target_arch=x64 --target_libc=unknown |
|
|
|
@ -94,7 +90,7 @@ jobs:
|
|
|
|
|
npx modclean --patterns="default:*" --ignore="nc-lib-gui/**,nocodb/**,dayjs/**,express-status-monitor/**,sqlite3/**" --run |
|
|
|
|
|
|
|
|
|
# build executables |
|
|
|
|
pnpm run build |
|
|
|
|
npm run build |
|
|
|
|
|
|
|
|
|
ls ./dist |
|
|
|
|
|
|
|
|
|