mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: support aarch64 (#1710)
This commit is contained in:
parent
834152dffc
commit
ba653ff463
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -70,11 +70,13 @@ jobs:
|
|||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: ${{ matrix.job.os }}
|
prefix-key: appflowy-lib-cache
|
||||||
|
key: ${{ matrix.job.os }}-${{ matrix.job.target }}
|
||||||
|
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: |
|
run: |
|
||||||
|
vcpkg integrate install
|
||||||
cargo install --force cargo-make
|
cargo install --force cargo-make
|
||||||
cargo install --force duckscript_cli
|
cargo install --force duckscript_cli
|
||||||
|
|
||||||
@ -157,7 +159,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: ${{ matrix.job.os }}
|
prefix-key: appflowy-lib-cache
|
||||||
|
key: ${{ matrix.job.os }}-${{ matrix.job.target }}
|
||||||
|
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
@ -217,12 +220,14 @@ jobs:
|
|||||||
LINUX_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/linux/Release
|
LINUX_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/linux/Release
|
||||||
LINUX_ZIP_NAME: AppFlowy_${{ matrix.job.target }}_${{ matrix.job.os }}.tar.gz
|
LINUX_ZIP_NAME: AppFlowy_${{ matrix.job.target }}_${{ matrix.job.os }}.tar.gz
|
||||||
LINUX_PACKAGE_NAME: AppFlowy_${{ github.ref_name }}_${{ matrix.job.os }}.deb
|
LINUX_PACKAGE_NAME: AppFlowy_${{ github.ref_name }}_${{ matrix.job.os }}.deb
|
||||||
|
# PKG_CONFIG_SYSROOT_DIR: /
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
job:
|
job:
|
||||||
- { arch: x86_64, target: x86_64-unknown-linux-gnu, os: ubuntu-20.04, extra-build-args: "", }
|
- { arch: x86_64, target: x86_64-unknown-linux-gnu, os: ubuntu-20.04, extra-build-args: "", flutter_profile: production-linux-x86_64 }
|
||||||
- { arch: x86_64, target: x86_64-unknown-linux-gnu, os: ubuntu-18.04, extra-build-args: "", }
|
# - { arch: aarch64, target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, extra-build-args: "", flutter_profile: production-linux-aarch64 }
|
||||||
|
- { arch: x86_64, target: x86_64-unknown-linux-gnu, os: ubuntu-18.04, extra-build-args: "", flutter_profile: production-linux-x86_64}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -245,7 +250,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: ${{ matrix.job.os }}
|
prefix-key: appflowy-lib-cache
|
||||||
|
key: ${{ matrix.job.os }}-${{ matrix.job.target }}
|
||||||
|
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
@ -257,12 +263,19 @@ jobs:
|
|||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
cargo install --force cargo-make
|
cargo install --force cargo-make
|
||||||
cargo install --force duckscript_cli
|
cargo install --force duckscript_cli
|
||||||
|
rustup target add ${{ matrix.job.target }}
|
||||||
|
|
||||||
|
- name: Install gcc-aarch64-linux-gnu
|
||||||
|
if: ${{ matrix.job.target == 'aarch64-unknown-linux-gnu' }}
|
||||||
|
working-directory: frontend
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
|
||||||
- name: Build AppFlowy
|
- name: Build AppFlowy
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: |
|
run: |
|
||||||
flutter config --enable-linux-desktop
|
flutter config --enable-linux-desktop
|
||||||
cargo make --env APP_VERSION=${{ github.ref_name }} --profile production-linux-x86_64 appflowy
|
cargo make --env APP_VERSION=${{ github.ref_name }} --profile ${{ matrix.job.flutter_profile}} appflowy
|
||||||
|
|
||||||
- name: Archive Assert
|
- name: Archive Assert
|
||||||
working-directory: ${{ env.LINUX_APP_RELEASE_PATH }}
|
working-directory: ${{ env.LINUX_APP_RELEASE_PATH }}
|
||||||
|
@ -132,6 +132,7 @@ CRATE_TYPE = "cdylib"
|
|||||||
FLUTTER_OUTPUT_DIR = "Debug"
|
FLUTTER_OUTPUT_DIR = "Debug"
|
||||||
LIB_EXT = "so"
|
LIB_EXT = "so"
|
||||||
LINUX_ARCH = "arm64"
|
LINUX_ARCH = "arm64"
|
||||||
|
FLUTTER_DESKTOP_FEATURES = "flutter,rev-sqlite,openssl_vendored"
|
||||||
|
|
||||||
[env.production-linux-aarch64]
|
[env.production-linux-aarch64]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
@ -142,6 +143,7 @@ FLUTTER_OUTPUT_DIR = "Release"
|
|||||||
LIB_EXT = "so"
|
LIB_EXT = "so"
|
||||||
LINUX_ARCH = "arm64"
|
LINUX_ARCH = "arm64"
|
||||||
APP_ENVIRONMENT = "production"
|
APP_ENVIRONMENT = "production"
|
||||||
|
FLUTTER_DESKTOP_FEATURES = "flutter,rev-sqlite,openssl_vendored"
|
||||||
|
|
||||||
[tasks.echo_env]
|
[tasks.echo_env]
|
||||||
script = ['''
|
script = ['''
|
||||||
@ -169,14 +171,14 @@ BUILD_FLAG = "debug"
|
|||||||
TARGET_OS = "android"
|
TARGET_OS = "android"
|
||||||
CRATE_TYPE = "cdylib"
|
CRATE_TYPE = "cdylib"
|
||||||
FLUTTER_OUTPUT_DIR = "Debug"
|
FLUTTER_OUTPUT_DIR = "Debug"
|
||||||
FEATURES = "flutter,openssl_vendored"
|
FLUTTER_DESKTOP_FEATURES = "flutter,rev-sqlite,openssl_vendored"
|
||||||
|
|
||||||
[env.production-android]
|
[env.production-android]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
TARGET_OS = "android"
|
TARGET_OS = "android"
|
||||||
CRATE_TYPE = "cdylib"
|
CRATE_TYPE = "cdylib"
|
||||||
FLUTTER_OUTPUT_DIR = "Release"
|
FLUTTER_OUTPUT_DIR = "Release"
|
||||||
FEATURES = "flutter,openssl_vendored"
|
FLUTTER_DESKTOP_FEATURES = "flutter,rev-sqlite,openssl_vendored"
|
||||||
|
|
||||||
[tasks.setup-crate-type]
|
[tasks.setup-crate-type]
|
||||||
private = true
|
private = true
|
||||||
|
1294
frontend/rust-lib/Cargo.lock
generated
1294
frontend/rust-lib/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,8 @@ r2d2 = "0.8.9"
|
|||||||
libsqlite3-sys = { version = ">=0.8.0, <0.24.0", features = ["bundled"] }
|
libsqlite3-sys = { version = ">=0.8.0, <0.24.0", features = ["bundled"] }
|
||||||
scheduled-thread-pool = "0.2.5"
|
scheduled-thread-pool = "0.2.5"
|
||||||
error-chain = "=0.12.0"
|
error-chain = "=0.12.0"
|
||||||
openssl = { version = "0.10.38", optional = true }
|
openssl = { version = "0.10.38", optional = true, features = ["vendored"] }
|
||||||
|
openssl-sys = { version = "0.9.69", optional = true, features = ["vendored"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
openssl_vendored = ["openssl/vendored"]
|
openssl_vendored = ["openssl", "openssl-sys"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user