opt: remove elinux deps for arm64
This commit is contained in:
parent
1adee6d0cb
commit
100d753292
53
.github/workflows/flutter-build.yml
vendored
53
.github/workflows/flutter-build.yml
vendored
@ -10,9 +10,6 @@ on:
|
|||||||
env:
|
env:
|
||||||
LLVM_VERSION: "15.0.6"
|
LLVM_VERSION: "15.0.6"
|
||||||
FLUTTER_VERSION: "3.10.0"
|
FLUTTER_VERSION: "3.10.0"
|
||||||
# for arm64 linux
|
|
||||||
FLUTTER_ELINUX_VERSION: "3.7.0"
|
|
||||||
FLUTTER_ELINUX_COMMIT_ID: "51a1d685901f79fbac51665a967c3a1a789ecee5"
|
|
||||||
TAG_NAME: "nightly"
|
TAG_NAME: "nightly"
|
||||||
# vcpkg version: 2023.04.15
|
# vcpkg version: 2023.04.15
|
||||||
# for multiarch gcc compatibility
|
# for multiarch gcc compatibility
|
||||||
@ -1163,18 +1160,18 @@ jobs:
|
|||||||
name: librustdesk-${{ matrix.job.arch }}-${{ matrix.job.extra-build-features }}.so
|
name: librustdesk-${{ matrix.job.arch }}-${{ matrix.job.extra-build-features }}.so
|
||||||
path: ./target/release/
|
path: ./target/release/
|
||||||
|
|
||||||
- name: Download Flutter
|
# - name: Download Flutter
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
# disable git safe.directory
|
# # disable git safe.directory
|
||||||
git config --global --add safe.directory "*"
|
# git config --global --add safe.directory "*"
|
||||||
pushd /opt
|
# pushd /opt
|
||||||
# clone repo and reset to flutter 3.7.0
|
# # clone repo and reset to flutter ${{ env.FLUTTER_VERSION }}
|
||||||
git clone https://github.com/sony/flutter-elinux.git || true
|
# git clone https://github.com/sony/flutter-elinux.git || true
|
||||||
pushd flutter-elinux
|
# pushd flutter-elinux
|
||||||
git fetch
|
# git fetch
|
||||||
git reset --hard ${{ env.FLUTTER_ELINUX_COMMIT_ID }}
|
# git reset --hard ${{ env.FLUTTER_ELINUX_COMMIT_ID }}
|
||||||
popd
|
# popd
|
||||||
|
|
||||||
- uses: Kingtous/run-on-arch-action@amd64-support
|
- uses: Kingtous/run-on-arch-action@amd64-support
|
||||||
name: Build rustdesk binary for ${{ matrix.job.arch }}
|
name: Build rustdesk binary for ${{ matrix.job.arch }}
|
||||||
@ -1188,7 +1185,6 @@ jobs:
|
|||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}:/workspace"
|
--volume "${PWD}:/workspace"
|
||||||
--volume "/opt/artifacts:/opt/artifacts"
|
--volume "/opt/artifacts:/opt/artifacts"
|
||||||
--volume "/opt/flutter-elinux:/opt/flutter-elinux"
|
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
install: |
|
install: |
|
||||||
apt update -y
|
apt update -y
|
||||||
@ -1196,19 +1192,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# disable git safe.directory
|
# disable git safe.directory
|
||||||
git config --global --add safe.directory "*"
|
git config --global --add safe.directory "*"
|
||||||
pushd /workspace
|
pushd /opt
|
||||||
# we use flutter-elinux to build our rustdesk
|
# Setup Flutter
|
||||||
export PATH=/opt/flutter-elinux/bin:$PATH
|
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${{ env.FLUTTER_VERSION }}-stable.tar.xz
|
||||||
sed -i "s/flutter build linux --release/flutter-elinux build linux/g" ./build.py
|
tar xf flutter_linux_${{ env.FLUTTER_VERSION }}-stable.tar.xz
|
||||||
# Setup flutter-elinux. Run doctor to check if issues here.
|
ls -l .
|
||||||
flutter-elinux doctor -v
|
export PATH=/opt/flutter/bin:$PATH
|
||||||
|
flutter doctor -v
|
||||||
# Patch arm64 engine for flutter 3.6.0+
|
# Patch arm64 engine for flutter 3.6.0+
|
||||||
flutter-elinux precache --linux
|
flutter precache --linux
|
||||||
pushd /tmp
|
# pushd /tmp
|
||||||
curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.0-stable.tar.xz
|
# curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.0-stable.tar.xz
|
||||||
tar -xvf flutter_linux_3.7.0-stable.tar.xz flutter/bin/cache/artifacts/engine/linux-x64/shader_lib
|
# tar -xvf flutter_linux_3.7.0-stable.tar.xz flutter/bin/cache/artifacts/engine/linux-x64/shader_lib
|
||||||
cp -R flutter/bin/cache/artifacts/engine/linux-x64/shader_lib /opt/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64
|
# cp -R flutter/bin/cache/artifacts/engine/linux-x64/shader_lib /opt/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64
|
||||||
popd
|
# popd
|
||||||
# edit to corresponding arch
|
# edit to corresponding arch
|
||||||
case ${{ matrix.job.arch }} in
|
case ${{ matrix.job.arch }} in
|
||||||
aarch64)
|
aarch64)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user