mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-27 14:59:57 +00:00
wip
This commit is contained in:
parent
794a940d2b
commit
672f85e4d9
72
.github/workflows/build.yml
vendored
72
.github/workflows/build.yml
vendored
@ -37,9 +37,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- arch: x86_64
|
- arch: x86_64
|
||||||
|
rust_triple: x86_64-apple-darwin
|
||||||
- arch: arm64
|
- arch: arm64
|
||||||
|
rust_triple: aarch64-apple-darwin
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
ARCH: ${{matrix.arch}}
|
||||||
|
RUST_TARGET_TRIPLE: ${{matrix.rust_triple}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -57,8 +63,6 @@ jobs:
|
|||||||
npm config set python python3
|
npm config set python python3
|
||||||
sudo npm i -g yarn@1.22.1
|
sudo npm i -g yarn@1.22.1
|
||||||
yarn --network-timeout 1000000
|
yarn --network-timeout 1000000
|
||||||
env:
|
|
||||||
ARCH: ${{matrix.arch}}
|
|
||||||
|
|
||||||
- name: Fix cross build
|
- name: Fix cross build
|
||||||
run: |
|
run: |
|
||||||
@ -71,8 +75,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepackage plugins
|
- name: Prepackage plugins
|
||||||
run: scripts/prepackage-plugins.mjs
|
run: scripts/prepackage-plugins.mjs
|
||||||
env:
|
|
||||||
ARCH: ${{matrix.arch}}
|
|
||||||
|
|
||||||
- run: sed -i '' 's/updateInfo = await/\/\/updateInfo = await/g' node_modules/app-builder-lib/out/targets/ArchiveTarget.js
|
- run: sed -i '' 's/updateInfo = await/\/\/updateInfo = await/g' node_modules/app-builder-lib/out/targets/ArchiveTarget.js
|
||||||
|
|
||||||
@ -137,11 +139,14 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- build-arch: x64
|
- build-arch: x64
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
rust_triple: x86_64-unknown-linux-gnu
|
||||||
- build-arch: arm64
|
- build-arch: arm64
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
rust_triple: aarch64-unknown-linux-gnu
|
||||||
triplet: aarch64-linux-gnu-
|
triplet: aarch64-linux-gnu-
|
||||||
- build-arch: arm
|
- build-arch: arm
|
||||||
arch: armhf
|
arch: armhf
|
||||||
|
rust_triple: arm-unknown-linux-gnueabihf
|
||||||
triplet: arm-linux-gnueabihf-
|
triplet: arm-linux-gnueabihf-
|
||||||
env:
|
env:
|
||||||
CC: ${{matrix.triplet}}gcc
|
CC: ${{matrix.triplet}}gcc
|
||||||
@ -149,6 +154,7 @@ jobs:
|
|||||||
ARCH: ${{matrix.build-arch}}
|
ARCH: ${{matrix.build-arch}}
|
||||||
npm_config_arch: ${{matrix.build-arch}}
|
npm_config_arch: ${{matrix.build-arch}}
|
||||||
npm_config_target_arch: ${{matrix.build-arch}}
|
npm_config_target_arch: ${{matrix.build-arch}}
|
||||||
|
RUST_TARGET_TRIPLE: ${{matrix.rust_triple}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -227,53 +233,6 @@ jobs:
|
|||||||
run: zsh -c 'tar czf tabby-web.tar.gz (tabby-*|web)/dist'
|
run: zsh -c 'tar czf tabby-web.tar.gz (tabby-*|web)/dist'
|
||||||
if: matrix.build-arch == 'x64'
|
if: matrix.build-arch == 'x64'
|
||||||
|
|
||||||
# - name: Install deps and Build (arm64)
|
|
||||||
# uses: docker://multiarch/ubuntu-core:arm64-bionic
|
|
||||||
# with:
|
|
||||||
# args: >
|
|
||||||
# bash -c
|
|
||||||
# "apt update && apt install curl lsb-release gnupg -y &&
|
|
||||||
# curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&
|
|
||||||
# apt install make build-essential git ruby libarchive-tools nodejs rpm libsecret-1-dev libfontconfig1-dev -y &&
|
|
||||||
# git config --global --add safe.directory /github/workspace &&
|
|
||||||
# gem install public_suffix -v 4.0.7 &&
|
|
||||||
# gem install fpm --no-document &&
|
|
||||||
# npm i -g yarn &&
|
|
||||||
# cd /github/workspace &&
|
|
||||||
# yarn --network-timeout 1000000 &&
|
|
||||||
# yarn run build &&
|
|
||||||
# scripts/prepackage-plugins.mjs &&
|
|
||||||
# USE_SYSTEM_FPM=true scripts/build-linux.mjs"
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# KEYGEN_TOKEN: ${{ secrets.KEYGEN_TOKEN }}
|
|
||||||
# USE_HARD_LINKS: false
|
|
||||||
# if: matrix.build-arch == 'arm64' && github.repository == 'Eugeny/tabby' && startsWith(github.ref, 'refs/tags')
|
|
||||||
|
|
||||||
# - name: Install deps and Build (armv7l)
|
|
||||||
# uses: docker://multiarch/ubuntu-core:armhf-bionic
|
|
||||||
# with:
|
|
||||||
# args: >
|
|
||||||
# bash -c
|
|
||||||
# "apt update && apt install curl lsb-release gnupg -y &&
|
|
||||||
# curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&
|
|
||||||
# apt install make build-essential git ruby libarchive-tools nodejs rpm libsecret-1-dev libfontconfig1-dev -y &&
|
|
||||||
# git config --global --add safe.directory /github/workspace &&
|
|
||||||
# gem install public_suffix -v 4.0.7 &&
|
|
||||||
# gem install fpm --no-document &&
|
|
||||||
# npm i -g yarn &&
|
|
||||||
# cd /github/workspace &&
|
|
||||||
# sed -i '/ \"electron\":/c\ \"electron\": \"17.0.0\",' package.json &&
|
|
||||||
# yarn --network-timeout 1000000 &&
|
|
||||||
# yarn run build &&
|
|
||||||
# scripts/prepackage-plugins.mjs &&
|
|
||||||
# USE_SYSTEM_FPM=true scripts/build-linux.mjs"
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# KEYGEN_TOKEN: ${{ secrets.KEYGEN_TOKEN }}
|
|
||||||
# USE_HARD_LINKS: false
|
|
||||||
# if: matrix.build-arch == 'arm' && github.repository == 'Eugeny/tabby' && startsWith(github.ref, 'refs/tags')
|
|
||||||
|
|
||||||
- name: Upload symbols (amd64 only)
|
- name: Upload symbols (amd64 only)
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g @sentry/cli --unsafe-perm
|
sudo npm install -g @sentry/cli --unsafe-perm
|
||||||
@ -330,7 +289,6 @@ jobs:
|
|||||||
path: tabby-web.tar.gz
|
path: tabby-web.tar.gz
|
||||||
if: matrix.build-arch == 'x64'
|
if: matrix.build-arch == 'x64'
|
||||||
|
|
||||||
|
|
||||||
Windows-Build:
|
Windows-Build:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
needs: Lint
|
needs: Lint
|
||||||
@ -338,9 +296,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- arch: x64
|
- arch: x64
|
||||||
|
rust_triple: x86_64-pc-windows-msvc
|
||||||
- arch: arm64
|
- arch: arm64
|
||||||
|
rust_triple: aarch64-pc-windows-msvc
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUST_TARGET_TRIPLE: ${{matrix.rust_triple}}
|
||||||
|
ARCH: ${{matrix.arch}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -364,8 +328,6 @@ jobs:
|
|||||||
yarn --network-timeout 1000000
|
yarn --network-timeout 1000000
|
||||||
yarn run build
|
yarn run build
|
||||||
node scripts/prepackage-plugins.mjs
|
node scripts/prepackage-plugins.mjs
|
||||||
env:
|
|
||||||
ARCH: ${{matrix.arch}}
|
|
||||||
|
|
||||||
- name: Build and sign packages
|
- name: Build and sign packages
|
||||||
run: node scripts/build-windows.mjs
|
run: node scripts/build-windows.mjs
|
||||||
@ -381,8 +343,6 @@ jobs:
|
|||||||
- name: Build packages without signing
|
- name: Build packages without signing
|
||||||
run: node scripts/build-windows.mjs
|
run: node scripts/build-windows.mjs
|
||||||
if: "!(github.repository == 'Eugeny/tabby' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')))"
|
if: "!(github.repository == 'Eugeny/tabby' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')))"
|
||||||
env:
|
|
||||||
ARCH: ${{matrix.arch}}
|
|
||||||
|
|
||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
run: |
|
run: |
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
"native-process-working-directory": "^1.0.2",
|
"native-process-working-directory": "^1.0.2",
|
||||||
"npm": "6",
|
"npm": "6",
|
||||||
"rxjs": "^7.5.7",
|
"rxjs": "^7.5.7",
|
||||||
"russh": "^0.0.1-alpha.2",
|
"russh": "^0.0.1-alpha.3",
|
||||||
"source-map-support": "^0.5.20",
|
"source-map-support": "^0.5.20",
|
||||||
"v8-compile-cache": "^2.3.0",
|
"v8-compile-cache": "^2.3.0",
|
||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user