|
|
@@ -728,58 +728,6 @@ jobs:
|
|
|
path: llama-${{ steps.tag.outputs.name }}-xcframework.tar.gz
|
|
|
name: llama-${{ steps.tag.outputs.name }}-xcframework.tar.gz
|
|
|
|
|
|
- openEuler-cann:
|
|
|
- strategy:
|
|
|
- matrix:
|
|
|
- arch: [x86, aarch64]
|
|
|
- chip_type: ['910b', '310p']
|
|
|
- build: ['Release']
|
|
|
- runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
|
|
|
- container: ascendai/cann:${{ matrix.chip_type == '910b' && '8.3.rc1.alpha001-910b-openeuler22.03-py3.11' || '8.2.rc1-310p-openeuler22.03-py3.11' }}
|
|
|
- steps:
|
|
|
- - name: Checkout
|
|
|
- uses: actions/checkout@v4
|
|
|
- with:
|
|
|
- fetch-depth: 0
|
|
|
-
|
|
|
- - name: Dependencies
|
|
|
- run: |
|
|
|
- yum update -y
|
|
|
- yum install -y git gcc gcc-c++ make cmake libcurl-devel
|
|
|
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
-
|
|
|
- - name: Build
|
|
|
- run: |
|
|
|
- export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
|
|
|
-
|
|
|
- cmake -S . -B build \
|
|
|
- -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
|
|
|
- -DGGML_CANN=on \
|
|
|
- -DSOC_TYPE=ascend${{ matrix.chip_type }}
|
|
|
- cmake --build build -j $(nproc)
|
|
|
-
|
|
|
- - name: Determine tag name
|
|
|
- id: tag
|
|
|
- uses: ./.github/actions/get-tag-name
|
|
|
-
|
|
|
- - name: Pack artifacts
|
|
|
- run: |
|
|
|
- cp LICENSE ./build/bin/
|
|
|
- zip -y -r llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.zip ./build/bin/*
|
|
|
- tar -czvf llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz -C ./build/bin .
|
|
|
-
|
|
|
- - name: Upload artifacts (zip)
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
- with:
|
|
|
- path: llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.zip
|
|
|
- name: llama-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.zip
|
|
|
-
|
|
|
- - name: Upload artifacts (tar)
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
- with:
|
|
|
- path: llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz
|
|
|
- name: llama-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz
|
|
|
-
|
|
|
release:
|
|
|
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
|
|
|
|
|
|
@@ -801,7 +749,6 @@ jobs:
|
|
|
- macOS-arm64
|
|
|
- macOS-x64
|
|
|
- ios-xcode-build
|
|
|
- - openEuler-cann
|
|
|
|
|
|
steps:
|
|
|
- name: Clone
|
|
|
@@ -893,12 +840,6 @@ jobs:
|
|
|
- [Windows x64 (SYCL)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip)
|
|
|
- [Windows x64 (HIP)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-win-hip-radeon-x64.zip)
|
|
|
|
|
|
- **openEuler:**
|
|
|
- - [openEuler x86 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-x86.tar.gz)
|
|
|
- - [openEuler x86 (910b)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-x86.tar.gz)
|
|
|
- - [openEuler aarch64 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-aarch64.tar.gz)
|
|
|
- - [openEuler aarch64 (910b)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-aarch64.tar.gz)
|
|
|
-
|
|
|
- name: Upload release
|
|
|
id: upload_release
|
|
|
uses: actions/github-script@v3
|