mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-09 06:20:22 +08:00
Add Linux armv7l and arm64 support
This commit is contained in:
parent
f5f063a511
commit
a874a5e4d5
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -131,6 +131,12 @@ jobs:
|
|||||||
Linux-Build:
|
Linux-Build:
|
||||||
runs-on: ubuntu-18.04 # build against an older glibc for compatibility
|
runs-on: ubuntu-18.04 # build against an older glibc for compatibility
|
||||||
needs: Lint
|
needs: Lint
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: x86_64
|
||||||
|
- arch: armv7l
|
||||||
|
- arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -156,22 +162,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Build native deps
|
- name: Build native deps
|
||||||
run: scripts/build-native.js
|
run: scripts/build-native.js
|
||||||
|
env:
|
||||||
|
ARCH: ${{matrix.arch}}
|
||||||
|
|
||||||
|
- name: Build native deps
|
||||||
|
run: |
|
||||||
|
rm -rf app/node_modules/cpu-features
|
||||||
|
rm -rf app/node_modules/ssh2/crypto/build
|
||||||
|
if: ${{ matrix.arch == 'arm64' }}
|
||||||
|
|
||||||
- name: Webpack
|
- name: Webpack
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
|
|
||||||
- name: Prepackage plugins
|
- name: Prepackage plugins
|
||||||
run: scripts/prepackage-plugins.js
|
run: scripts/prepackage-plugins.js
|
||||||
|
env:
|
||||||
|
ARCH: ${{matrix.arch}}
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: scripts/build-linux.js
|
run: scripts/build-linux.js
|
||||||
env:
|
env:
|
||||||
|
ARCH: ${{matrix.arch}}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
USE_HARD_LINKS: false
|
USE_HARD_LINKS: false
|
||||||
# DEBUG: electron-builder,electron-builder:*
|
# DEBUG: electron-builder,electron-builder:*
|
||||||
|
|
||||||
- name: Build web resources
|
- name: Build web resources
|
||||||
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.arch == x86_64 }}
|
||||||
|
|
||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
run: |
|
run: |
|
||||||
@ -181,6 +199,7 @@ jobs:
|
|||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
|
if: ${{ matrix.arch == x86_64 }}
|
||||||
|
|
||||||
- name: Upload packages to packagecloud.io
|
- name: Upload packages to packagecloud.io
|
||||||
uses: Eugeny/packagecloud-action@main
|
uses: Eugeny/packagecloud-action@main
|
||||||
|
Loading…
Reference in New Issue
Block a user