feat: add armv7 arm64 libyuv compile
This commit is contained in:
parent
c80386ba98
commit
98705bb759
54
.github/workflows/flutter-nightly.yml
vendored
54
.github/workflows/flutter-nightly.yml
vendored
@ -5,6 +5,8 @@ on:
|
|||||||
# schedule build every night
|
# schedule build every night
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
# REMOVE ME ON PR
|
||||||
|
push:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: "10.0"
|
LLVM_VERSION: "10.0"
|
||||||
@ -199,9 +201,9 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
job:
|
job:
|
||||||
# - { arch: armv7 , os: ubuntu-18.04}
|
- { arch: armv7 , os: ubuntu-18.04}
|
||||||
- { arch: x86_64, os: ubuntu-18.04 }
|
- { arch: x86_64, os: ubuntu-18.04 }
|
||||||
# - { arch: aarch64 , os: ubuntu-18.04}
|
- { arch: aarch64 , os: ubuntu-18.04}
|
||||||
steps:
|
steps:
|
||||||
- name: Create vcpkg artifacts folder
|
- name: Create vcpkg artifacts folder
|
||||||
run: mkdir -p /opt/artifacts
|
run: mkdir -p /opt/artifacts
|
||||||
@ -227,24 +229,42 @@ jobs:
|
|||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
install: |
|
install: |
|
||||||
apt update -y
|
apt update -y
|
||||||
# CMake 3.15+
|
case "${arch}" in
|
||||||
apt install -y gpg wget ca-certificates
|
x86_64)
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
|
# CMake 3.15+
|
||||||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
apt install -y gpg wget ca-certificates
|
||||||
apt update -y
|
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
|
||||||
apt install -y curl zip unzip tar git cmake g++ gcc build-essential pkg-config wget nasm yasm ninja-build
|
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
||||||
|
apt update -y
|
||||||
|
apt install -y curl zip unzip tar git cmake g++ gcc build-essential pkg-config wget nasm yasm ninja-build
|
||||||
|
;;
|
||||||
|
aarch64|armv7)
|
||||||
|
apt install -y curl zip unzip tar git cmake g++ gcc build-essential pkg-config wget nasm yasm ninja-build
|
||||||
|
esac
|
||||||
cmake --version
|
cmake --version
|
||||||
gcc -v
|
gcc -v
|
||||||
run: |
|
run: |
|
||||||
export VCPKG_FORCE_SYSTEM_BINARIES=1
|
case "${arch}" in
|
||||||
pushd /artifacts
|
x86_64)
|
||||||
git clone https://github.com/microsoft/vcpkg.git || true
|
export VCPKG_FORCE_SYSTEM_BINARIES=1
|
||||||
git config --global --add safe.directory /artifacts/vcpkg || true
|
pushd /artifacts
|
||||||
pushd vcpkg
|
git clone https://github.com/microsoft/vcpkg.git || true
|
||||||
git reset --hard ${{ env.VCPKG_COMMIT_ID }}
|
git config --global --add safe.directory /artifacts/vcpkg || true
|
||||||
./bootstrap-vcpkg.sh
|
pushd vcpkg
|
||||||
./vcpkg install libvpx libyuv opus
|
git reset --hard ${{ env.VCPKG_COMMIT_ID }}
|
||||||
|
./bootstrap-vcpkg.sh
|
||||||
|
./vcpkg install libvpx libyuv opus
|
||||||
|
;;
|
||||||
|
aarch64|armv7)
|
||||||
|
git clone https://chromium.googlesource.com/libyuv/libyuv
|
||||||
|
pushd libyuv
|
||||||
|
mkdir build
|
||||||
|
pushd build
|
||||||
|
mkdir -p /opt/artifacts/vcpkg/installed
|
||||||
|
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/artifacts/vcpkg/installed
|
||||||
|
make -j4 && make install
|
||||||
|
;;
|
||||||
|
esac
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user