From 9660f9609aaebe6c488fd40bcd48de25f857b7a3 Mon Sep 17 00:00:00 2001 From: nekomimimi Date: Tue, 9 Jan 2024 02:40:19 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"onnxruntime=E3=81=AE=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=82=921.15.1=E3=81=AB?= =?UTF-8?q?=E4=B8=8A=E3=81=92=E3=82=8B=20(#22)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e4e26e437fd9dba1b33ac1927181b41d71fed9ce. --- .github/workflows/build.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c68ac96..b4138b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ on: env: ONNXRUNTIME_VERSION: |- # releaseタグ名か、workflow_dispatchでのバージョン名が入る。無指定なら適当なバージョン - ${{ github.event.release.tag_name || github.event.inputs.version || '1.15.1' }} + ${{ github.event.release.tag_name || github.event.inputs.version || '1.14.0' }} RELEASE: |- # releaseタグ名か、workflow_dispatchでのreleaseフラグがあればリリースする ${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }} @@ -55,19 +55,16 @@ jobs: - artifact_name: onnxruntime-ios-arm64 os: macos-12 build_opts: --config Release --parallel --update --build --build_shared_lib --skip_tests --use_xcode --ios --ios_sysroot iphoneos --osx_arch arm64 --apple_deploy_target 16.0 - build_opts_workaround_protoc: --path_to_protoc_exe /usr/local/opt/protobuf@21/bin/protoc result_dir: build/iOS/Release release_config: Release-iphoneos - artifact_name: onnxruntime-ios-sim-arm64 os: macos-12 build_opts: --config Release --parallel --update --build --build_shared_lib --skip_tests --use_xcode --ios --ios_sysroot iphonesimulator --osx_arch arm64 --apple_deploy_target 16.0 - build_opts_workaround_protoc: --path_to_protoc_exe /usr/local/opt/protobuf@21/bin/protoc result_dir: build/iOS/Release release_config: Release-iphonesimulator - artifact_name: onnxruntime-ios-sim-x86_64 os: macos-12 build_opts: --config Release --parallel --update --build --build_shared_lib --skip_tests --use_xcode --ios --ios_sysroot iphonesimulator --osx_arch x86_64 --apple_deploy_target 16.0 - build_opts_workaround_protoc: --path_to_protoc_exe /usr/local/opt/protobuf@21/bin/protoc result_dir: build/iOS/Release release_config: Release-iphonesimulator @@ -113,7 +110,7 @@ jobs: path: build/ key: ${{ matrix.artifact_name }}-v${{ env.ONNXRUNTIME_VERSION }}-cache-v1-${{ hashFiles('matrix.json') }} - - name: Install build dependencies on ubuntu + - name: Install build dependencies if: steps.cache-build-result.outputs.cache-hit != 'true' && startsWith(matrix.os, 'ubuntu') run: | sudo apt-get update @@ -125,17 +122,11 @@ jobs: gcc-${{ matrix.cc_version }}${{ env.ARCH_SUFFIX }} \ g++-${{ matrix.cxx_version }}${{ env.ARCH_SUFFIX }} - - name: Install build dependencies on macos - if: steps.cache-build-result.outputs.cache-hit != 'true' && startsWith(matrix.os, 'macos') - run: | - # Workaround for protoc https://github.com/microsoft/onnxruntime/issues/16238#issuecomment-1590398821 - brew install protobuf@21 - - # ONNX Runtime v1.15.1 requires CMake 3.26 or higher. + # ONNX Runtime v1.14.1 requires CMake 3.24 or higher. - name: Install CMake if: steps.cache-build-result.outputs.cache-hit != 'true' && startsWith(matrix.os, 'ubuntu') env: - CMAKE_VERSION: 3.26.4 + CMAKE_VERSION: 3.24.4 run: | wget -O cmake.sh "https://github.com/Kitware/CMake/releases/download/v${{ env.CMAKE_VERSION }}/cmake-${{ env.CMAKE_VERSION }}-linux-x86_64.sh" sudo bash cmake.sh --skip-license --prefix=/usr/local @@ -165,7 +156,7 @@ jobs: # skip test: https://github.com/microsoft/onnxruntime/issues/2436 # ONNX Runtime v1.9.0 requires CMAKE_SYSTEM_PROCESSOR, https://github.com/microsoft/onnxruntime/releases/tag/v1.9.0 # Both CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR are required. - bash ./build.sh ${{ matrix.build_opts }} ${{ matrix.build_opts_workaround_protoc }} + bash ./build.sh ${{ matrix.build_opts }} - name: Organize artifact run: |