Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jul 21, 2023
1 parent f53bb4f commit c3474ca
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 5 deletions.
55 changes: 52 additions & 3 deletions .github/workflows/linux-precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: ubuntu-20.04
env:
TFLITE_BEAM_PREFER_PRECOMPILED: NO
name: Linux ${{ matrix.pair.target_arch }}-${{ matrix.pair.target_os }}-${{ matrix.pair.target_abi }} - OTP ${{ matrix.otp }}
name: Linux ${{ matrix.pair.target_arch }}-${{ matrix.pair.target_os }}-${{ matrix.pair.target_abi }} - OTP ${{ matrix.pair.otp }}

strategy:
fail-fast: false
matrix:
otp: ["25.x", "26.x"]
include:
- pair:
otp: "25.x"
arch_name: x86_64
cmake_toolchain_file: ""
c_compiler: gcc
Expand All @@ -33,6 +33,7 @@ jobs:
target_os: "linux"
target_abi: "gnu"
- pair:
otp: "25.x"
arch_name: aarch64
cmake_toolchain_file: cc_toolchain/aarch64-linux-gnu.cmake
c_compiler: gcc-aarch64-linux-gnu
Expand All @@ -44,6 +45,7 @@ jobs:
cc: "/usr/bin/aarch64-linux-gnu-gcc"
cxx: "/usr/bin/aarch64-linux-gnu-g++"
- pair:
otp: "25.x"
arch_name: armv7l
cmake_toolchain_file: cc_toolchain/armv7l-linux-gnueabihf.cmake
c_compiler: gcc-arm-linux-gnueabihf
Expand All @@ -55,6 +57,53 @@ jobs:
cc: "/usr/bin/arm-linux-gnueabihf-gcc"
cxx: "/usr/bin/arm-linux-gnueabihf-g++"
- pair:
otp: "25.x"
arch_name: riscv64
cmake_toolchain_file: cc_toolchain/riscv64-linux-gnu.cmake
c_compiler: gcc-riscv64-linux-gnu
cpp_compiler: g++-riscv64-linux-gnu
libedgetpu_library: "riscv64"
target_arch: "riscv64"
target_os: "linux"
target_abi: "gnu"
cc: "/usr/bin/riscv64-linux-gnu-gcc"
cxx: "/usr/bin/riscv64-linux-gnu-g++"
- pair:
otp: "26.x"
arch_name: x86_64
cmake_toolchain_file: ""
c_compiler: gcc
cpp_compiler: g++
libedgetpu_library: "x86_64"
target_arch: "x86_64"
target_os: "linux"
target_abi: "gnu"
- pair:
otp: "26.x"
arch_name: aarch64
cmake_toolchain_file: cc_toolchain/aarch64-linux-gnu.cmake
c_compiler: gcc-aarch64-linux-gnu
cpp_compiler: g++-aarch64-linux-gnu
libedgetpu_library: "aarch64"
target_arch: "aarch64"
target_os: "linux"
target_abi: "gnu"
cc: "/usr/bin/aarch64-linux-gnu-gcc"
cxx: "/usr/bin/aarch64-linux-gnu-g++"
- pair:
otp: "26.x"
arch_name: armv7l
cmake_toolchain_file: cc_toolchain/armv7l-linux-gnueabihf.cmake
c_compiler: gcc-arm-linux-gnueabihf
cpp_compiler: g++-arm-linux-gnueabihf
libedgetpu_library: "armv7l"
target_arch: "armv7l"
target_os: "linux"
target_abi: "gnueabihf"
cc: "/usr/bin/arm-linux-gnueabihf-gcc"
cxx: "/usr/bin/arm-linux-gnueabihf-g++"
- pair:
otp: "26.x"
arch_name: riscv64
cmake_toolchain_file: cc_toolchain/riscv64-linux-gnu.cmake
c_compiler: gcc-riscv64-linux-gnu
Expand All @@ -71,7 +120,7 @@ jobs:

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
otp-version: ${{ matrix.pair.otp }}

- name: Install system dependecies
run: |
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/macos-precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,26 @@ jobs:
env:
TFLITE_BEAM_PREFER_PRECOMPILED: "false"
elixir_version: "1.15.2"
name: macOS ${{ matrix.pair.arch }} - OTP ${{ matrix.otp }}
name: macOS ${{ matrix.pair.arch }} - OTP ${{ matrix.pair.otp }}

strategy:
fail-fast: false
matrix:
otp: ["25.3.2.3", "26.0.2"]
include:
- pair:
otp: "25.3.2.3"
arch: x86_64
libedgetpu_library: darwin_x86_64
- pair:
otp: "25.3.2.3"
arch: aarch64
libedgetpu_library: darwin_arm64
- pair:
otp: "26.0.2"
arch: x86_64
libedgetpu_library: darwin_x86_64
- pair:
otp: "26.0.2"
arch: aarch64
libedgetpu_library: darwin_arm64

Expand Down

0 comments on commit c3474ca

Please sign in to comment.