1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-26 13:10:36 +03:00

enable ARM linux builds on tags only

This commit is contained in:
Eugene Pankov 2022-09-04 17:59:48 +02:00 committed by Eugene
parent 16b338729f
commit e3232f174f

View File

@ -39,7 +39,7 @@ jobs:
- arch: x86_64 - arch: x86_64
- arch: arm64 - arch: arm64
fail-fast: false fail-fast: false
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -128,7 +128,9 @@ jobs:
strategy: strategy:
matrix: matrix:
build-arch: [ x64, arm64, armv7l ] build-arch: [ x64, arm64, armv7l ]
if: matrix.build-arch == "x64" || (github.repository == 'Eugeny/tabby' && startsWith(github.ref, 'refs/tags'))
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -152,7 +154,7 @@ jobs:
npm i -g yarn npm i -g yarn
yarn --network-timeout 1000000 yarn --network-timeout 1000000
if: ${{matrix.build-arch == 'x64'}} if: ${{matrix.build-arch == 'x64'}}
- name: Webpack (x64) - name: Webpack (x64)
run: yarn run build run: yarn run build
if: ${{matrix.build-arch == 'x64'}} if: ${{matrix.build-arch == 'x64'}}
@ -160,7 +162,7 @@ jobs:
- name: Prepackage plugins (x64) - name: Prepackage plugins (x64)
run: scripts/prepackage-plugins.js run: scripts/prepackage-plugins.js
if: ${{matrix.build-arch == 'x64'}} if: ${{matrix.build-arch == 'x64'}}
- name: Build packages (x64) - name: Build packages (x64)
run: scripts/build-linux.js run: scripts/build-linux.js
if: ${{matrix.build-arch == 'x64'}} if: ${{matrix.build-arch == 'x64'}}
@ -175,7 +177,7 @@ jobs:
- name: Install deps and Build (arm64) - name: Install deps and Build (arm64)
uses: docker://multiarch/ubuntu-core:arm64-bionic uses: docker://multiarch/ubuntu-core:arm64-bionic
with: with:
args: > args: >
bash -c bash -c
"apt update && apt install curl lsb-release gnupg -y && "apt update && apt install curl lsb-release gnupg -y &&
@ -197,7 +199,7 @@ jobs:
- name: Install deps and Build (armv7l) - name: Install deps and Build (armv7l)
uses: docker://multiarch/ubuntu-core:armhf-bionic uses: docker://multiarch/ubuntu-core:armhf-bionic
with: with:
args: > args: >
bash -c bash -c
"apt update && apt install curl lsb-release gnupg -y && "apt update && apt install curl lsb-release gnupg -y &&