mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
Squashed commit of the following:
commit 4efcf1bbd667ce5b25dd0da873738b22604af786 Author: Eugene <inbox@null.page> Date: Wed Jan 22 23:07:24 2025 +0100 Update build.yml commit abea964d94b27729edf29f73543454507084965c Author: Eugene <inbox@null.page> Date: Wed Jan 22 22:59:28 2025 +0100 Update build.yml commit 2e7b66ac606e1c7c16fe483b4cddf4e06c44c7a2 Author: Eugene <inbox@null.page> Date: Wed Jan 22 22:40:11 2025 +0100 native arm64 build
This commit is contained in:
parent
c6939b114d
commit
2fa7678bec
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -130,7 +130,7 @@ jobs:
|
|||||||
path: artifact-zip
|
path: artifact-zip
|
||||||
|
|
||||||
Linux-Build:
|
Linux-Build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ${{matrix.os}}
|
||||||
needs: Lint
|
needs: Lint
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -138,14 +138,17 @@ jobs:
|
|||||||
- build-arch: x64
|
- build-arch: x64
|
||||||
arch: amd64
|
arch: amd64
|
||||||
rust_triple: x86_64-unknown-linux-gnu
|
rust_triple: x86_64-unknown-linux-gnu
|
||||||
|
os: ubuntu-24.04
|
||||||
- build-arch: arm64
|
- build-arch: arm64
|
||||||
arch: arm64
|
arch: arm64
|
||||||
rust_triple: aarch64-unknown-linux-gnu
|
rust_triple: aarch64-unknown-linux-gnu
|
||||||
triplet: aarch64-linux-gnu-
|
triplet: aarch64-linux-gnu-
|
||||||
|
os: ubuntu-24.04-arm
|
||||||
- build-arch: arm
|
- build-arch: arm
|
||||||
arch: armhf
|
arch: armhf
|
||||||
rust_triple: arm-unknown-linux-gnueabihf
|
rust_triple: arm-unknown-linux-gnueabihf
|
||||||
triplet: arm-linux-gnueabihf-
|
triplet: arm-linux-gnueabihf-
|
||||||
|
os: ubuntu-24.04
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -167,6 +170,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
|
||||||
|
- name: Install FPM
|
||||||
|
run: |
|
||||||
|
sudo gem install fpm
|
||||||
|
|
||||||
- run: rustup target add ${{matrix.rust_triple}}
|
- run: rustup target add ${{matrix.rust_triple}}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@ -176,12 +183,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup tar to run as root
|
- name: Setup tar to run as root
|
||||||
run: sudo chmod u+s "$(command -v tar)"
|
run: sudo chmod u+s "$(command -v tar)"
|
||||||
if: matrix.build-arch != 'x64'
|
if: matrix.build-arch == 'arm'
|
||||||
|
|
||||||
- name: Download cached sysroot
|
- name: Download cached sysroot
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: dl-cached-sysroot
|
id: dl-cached-sysroot
|
||||||
if: matrix.build-arch !='x64'
|
if: matrix.build-arch == 'arm'
|
||||||
with:
|
with:
|
||||||
key: sysroot-${{matrix.build-arch}}
|
key: sysroot-${{matrix.build-arch}}
|
||||||
path: /${{matrix.build-arch}}-sysroot
|
path: /${{matrix.build-arch}}-sysroot
|
||||||
@ -191,7 +198,7 @@ jobs:
|
|||||||
sudo apt-get update -y && sudo apt-get install debootstrap qemu-user-static binfmt-support -y
|
sudo apt-get update -y && sudo apt-get install debootstrap qemu-user-static binfmt-support -y
|
||||||
sudo qemu-debootstrap --include=libfontconfig1-dev,libsecret-1-dev,libnss3,libatk1.0-0,libatk-bridge2.0-0,libgdk-pixbuf2.0-0,libgtk-3-0,libgbm1 --variant=buildd --exclude=snapd --components=main,restricted,universe,multiverse --extractor=dpkg-deb --arch ${{matrix.arch}} bionic /${{matrix.build-arch}}-sysroot/ http://ports.ubuntu.com/ubuntu-ports/
|
sudo qemu-debootstrap --include=libfontconfig1-dev,libsecret-1-dev,libnss3,libatk1.0-0,libatk-bridge2.0-0,libgdk-pixbuf2.0-0,libgtk-3-0,libgbm1 --variant=buildd --exclude=snapd --components=main,restricted,universe,multiverse --extractor=dpkg-deb --arch ${{matrix.arch}} bionic /${{matrix.build-arch}}-sysroot/ http://ports.ubuntu.com/ubuntu-ports/
|
||||||
sudo find /${{matrix.build-arch}}-sysroot -type l -lname '/*' -exec sh -c 'file="$0"; dir=$(dirname "$file"); target=$(readlink "$0"); prefix=$(dirname "$dir" | sed 's@[^/]*@\.\.@g'); newtarget="$prefix$target"; ln -snf $newtarget $file' {} \; ;
|
sudo find /${{matrix.build-arch}}-sysroot -type l -lname '/*' -exec sh -c 'file="$0"; dir=$(dirname "$file"); target=$(readlink "$0"); prefix=$(dirname "$dir" | sed 's@[^/]*@\.\.@g'); newtarget="$prefix$target"; ln -snf $newtarget $file' {} \; ;
|
||||||
if: matrix.build-arch != 'x64' && steps.dl-cached-sysroot.outputs.cache-hit != 'true'
|
if: matrix.build-arch == 'arm' && steps.dl-cached-sysroot.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
- name: Setup env to use ${{matrix.build-arch}} sysroot
|
- name: Setup env to use ${{matrix.build-arch}} sysroot
|
||||||
run: |
|
run: |
|
||||||
@ -206,9 +213,9 @@ jobs:
|
|||||||
elif [[ ${{matrix.arch}} == 'arm64' ]]; then
|
elif [[ ${{matrix.arch}} == 'arm64' ]]; then
|
||||||
echo "PKG_CONFIG_PATH=/${{matrix.build-arch}}-sysroot/usr/lib/pkgconfig/:/${{matrix.build-arch}}-sysroot/usr/lib/aarch64-linux-gnu/pkgconfig/" >> $GITHUB_ENV
|
echo "PKG_CONFIG_PATH=/${{matrix.build-arch}}-sysroot/usr/lib/pkgconfig/:/${{matrix.build-arch}}-sysroot/usr/lib/aarch64-linux-gnu/pkgconfig/" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
if: matrix.build-arch != 'x64'
|
if: matrix.build-arch == 'arm'
|
||||||
|
|
||||||
- name: Install npm_modules (amd64)
|
- name: Install npm_modules (native)
|
||||||
run: |
|
run: |
|
||||||
npm i -g yarn node-gyp
|
npm i -g yarn node-gyp
|
||||||
yarn --network-timeout 1000000 --arch=${{matrix.build-arch}} --target-arch=${{matrix.build-arch}}
|
yarn --network-timeout 1000000 --arch=${{matrix.build-arch}} --target-arch=${{matrix.build-arch}}
|
||||||
@ -225,6 +232,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
KEYGEN_TOKEN: ${{ secrets.KEYGEN_TOKEN }}
|
KEYGEN_TOKEN: ${{ secrets.KEYGEN_TOKEN }}
|
||||||
USE_HARD_LINKS: false
|
USE_HARD_LINKS: false
|
||||||
|
USE_SYSTEM_FPM: true
|
||||||
# DEBUG: electron-builder,electron-builder:*
|
# DEBUG: electron-builder,electron-builder:*
|
||||||
|
|
||||||
- name: Build web resources (amd64 only)
|
- name: Build web resources (amd64 only)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user