mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-02 02:57:26 +00:00
parent
08716d57d3
commit
ef5e9de7e6
2 changed files with 21 additions and 40 deletions
56
.github/workflows/package.yml
vendored
56
.github/workflows/package.yml
vendored
|
@ -43,54 +43,32 @@ jobs:
|
||||||
with:
|
with:
|
||||||
packages: "build-essential binfmt-support qemu-user-static ffmpeg tini curl libjemalloc-dev libjemalloc2 uuid-dev libx11-dev libxkbfile-dev execstack libgconf-2-4 libsecret-1-dev"
|
packages: "build-essential binfmt-support qemu-user-static ffmpeg tini curl libjemalloc-dev libjemalloc2 uuid-dev libx11-dev libxkbfile-dev execstack libgconf-2-4 libsecret-1-dev"
|
||||||
|
|
||||||
|
- name: Set pnpm store path
|
||||||
|
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ${{ env.PNPM_STORE_PATH }}
|
||||||
key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }}
|
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
restore-keys: v1-npm-deps-
|
restore-keys: |
|
||||||
|
pnpm-${{ runner.os }}-
|
||||||
- uses: MOZGIII/install-ldid-action@v1
|
|
||||||
with:
|
|
||||||
tag: v2.1.5-procursus2
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
corepack enable
|
corepack enable
|
||||||
corepack prepare pnpm@latest --activate
|
corepack prepare pnpm@latest --activate
|
||||||
pnpm install
|
CI=true pnpm install
|
||||||
npm install -g pkg
|
CI=true pnpm run build
|
||||||
npm install -g rollup
|
rm -rdf packages/backend/node_modules
|
||||||
npm install -g @rollup/plugin-node-resolve
|
rm -rdf packages/frontend/node_modules
|
||||||
pnpm run build
|
rm -rdf packages/megalodon/node_modules
|
||||||
cd packages/backend
|
rm -rdf packages/misskey-js/node_modules
|
||||||
mkdir dist
|
rm -rdf node_modules
|
||||||
rollup ./built/boot/entry.js --file ./dist/bundle.js --format cjs -p @rollup/plugin-node-resolve
|
CI=true pnpm --prod --no-optional install
|
||||||
pkg --debug --public ./dist/bundle.js --targets latest-linuxstatic-x64,latest-linuxstatic-arm64,latest-macos-x64,latest-macos-arm64,latest-win-x64
|
tar -czf /tmp/workspace.tar.gz .
|
||||||
ls
|
|
||||||
- name: Upload linux x64
|
- name: Upload linux x64
|
||||||
uses: actions/upload-artifact@v3.1.3
|
uses: actions/upload-artifact@v3.1.3
|
||||||
with:
|
with:
|
||||||
name: sharkey-linux-x64
|
name: sharkey-linux-x64
|
||||||
path: packages/backend/bundle-linuxstatic-x64
|
path: /tmp/workspace.tar.gz
|
||||||
- name: Upload linux arm64
|
|
||||||
uses: actions/upload-artifact@v3.1.3
|
|
||||||
with:
|
|
||||||
name: sharkey-linux-arm64
|
|
||||||
path: packages/backend/bundle-linuxstatic-arm64
|
|
||||||
- name: Upload mac arm64
|
|
||||||
uses: actions/upload-artifact@v3.1.3
|
|
||||||
with:
|
|
||||||
name: sharkey-macos-arm64
|
|
||||||
path: packages/backend/bundle-macos-arm64
|
|
||||||
- name: Upload mac x64
|
|
||||||
uses: actions/upload-artifact@v3.1.3
|
|
||||||
with:
|
|
||||||
name: sharkey-macos-arm64
|
|
||||||
path: packages/backend/bundle-macos-x64
|
|
||||||
- name: Upload Windows
|
|
||||||
uses: actions/upload-artifact@v3.1.3
|
|
||||||
with:
|
|
||||||
name: sharkey-win-x64.exe
|
|
||||||
path: packages/backend/bundle-win-x64.exe
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["*"]
|
"@/*": ["*"]
|
||||||
},
|
},
|
||||||
"target": "es2022"
|
"target": "es2018"
|
||||||
|
},
|
||||||
|
"module": {
|
||||||
|
"type": "commonjs",
|
||||||
},
|
},
|
||||||
"minify": false
|
"minify": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue