From 6fac21a0fa30277ae2fb19fd08022df6a05fce2e Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Sun, 19 Jan 2025 08:32:14 +0800 Subject: [PATCH 1/2] chore: remove .github/dependabot.yml --- .github/dependabot.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 5f0889c..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - -version: 2 -updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "weekly" From 9c6199acf1d06cafdfb621a76ee817033f97f1c2 Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Sun, 19 Jan 2025 18:23:54 +0800 Subject: [PATCH 2/2] feat: use new linux arm runner for build build-linux-arm64 & off GGML_NATIVE (#75) * ci: use new linux arm runner for build build-linux-arm64 * ci: install yarn by self * fix: set GGML_NATIVE=OFF --- .github/workflows/build-release.yml | 18 +++++------------- scripts/build-linux.sh | 4 ++-- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 2aebe93..2d73546 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -54,7 +54,7 @@ jobs: retention-days: ${{ inputs.artifacts-retention-days }} build-linux-arm64: - runs-on: ubuntu-22.04 + runs-on: ubuntu-22.04-arm steps: - uses: actions/checkout@v4 with: @@ -72,22 +72,14 @@ jobs: - uses: actions/setup-node@v4.0.2 with: node-version: 20 - cache: "yarn" + - name: Install yarn + run: npm install -g yarn - name: Install dependencies run: yarn install - - name: Setup QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: linux/arm64 - name: Prepare & build run: | - docker run --rm \ - -e CMAKE_BUILD_PARALLEL_LEVEL=${{ env.CMAKE_BUILD_PARALLEL_LEVEL }} \ - -v $(pwd):/${{ github.workspace }} \ - -w /${{ github.workspace }} \ - --platform linux/arm64 \ - arm64v8/ubuntu:latest \ - bash -c "./scripts/prepare-linux.sh && ./scripts/build-linux.sh" + bash ./scripts/prepare-linux.sh + bash ./scripts/build-linux.sh - name: Upload build artifacts if: github.event.inputs.upload-artifacts == 'YES' || inputs.upload-artifacts == 'YES' uses: actions/upload-artifact@v4 diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh index 943f519..ccf4818 100755 --- a/scripts/build-linux.sh +++ b/scripts/build-linux.sh @@ -10,6 +10,6 @@ if [ $ARCH == "x86_64" ]; then yarn clean && yarn build-native yarn clean && yarn build-native --CDLLAMA_VULKAN=1 --CDVARIANT=vulkan else - yarn clean && yarn build-native - yarn clean && yarn build-native --CDLLAMA_VULKAN=1 --CDVULKAN_SDK="$(realpath 'externals/arm64-Vulkan-SDK')" --CDVARIANT=vulkan + yarn clean && yarn build-native --CDGGML_NATIVE=OFF + yarn clean && yarn build-native --CDGGML_NATIVE=OFF --CDLLAMA_VULKAN=1 --CDVULKAN_SDK="$(realpath 'externals/arm64-Vulkan-SDK')" --CDVARIANT=vulkan fi