trim trailing whitespaces

This commit is contained in:
Jianlin Shi 2024-12-29 16:08:46 -07:00 committed by GitHub
parent cf12ada7f2
commit 9449305e47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
contents: write contents: write
env: env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
@ -34,7 +34,7 @@ env:
LLAMA_LOG_TIMESTAMPS: 1 LLAMA_LOG_TIMESTAMPS: 1
jobs: jobs:
windows-2019-cmake-cuda: windows-2019-cmake-cuda:
runs-on: windows-2019 runs-on: windows-2019
@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Get Python - name: Get Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
@ -73,12 +73,12 @@ jobs:
echo "Computer Name: ${env:COMPUTERNAME}" echo "Computer Name: ${env:COMPUTERNAME}"
wmic cpu get name wmic cpu get name
wmic os get TotalVisibleMemorySize, FreePhysicalMemory wmic os get TotalVisibleMemorySize, FreePhysicalMemory
- uses: Jimver/cuda-toolkit@v0.2.19 - uses: Jimver/cuda-toolkit@v0.2.19
id: cuda-toolkit id: cuda-toolkit
with: with:
cuda: ${{ github.event.inputs.cuda }} cuda: ${{ github.event.inputs.cuda }}
- name: Install ccache - name: Install ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
@ -91,7 +91,7 @@ jobs:
mkdir build mkdir build
cd build cd build
cmake .. -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="${{ github.event.inputs.gpu_arch }}" -DCMAKE_SYSTEM_VERSION="10.0.19041.0" cmake .. -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="${{ github.event.inputs.gpu_arch }}" -DCMAKE_SYSTEM_VERSION="10.0.19041.0"
cmake --build . --config Release -j 2 cmake --build . --config Release -j 2
- name: Determine tag name - name: Determine tag name
id: tag id: tag
@ -142,7 +142,7 @@ jobs:
- name: Move artifacts - name: Move artifacts
id: move_artifacts id: move_artifacts
run: mkdir -p ./artifact/release && mv ./artifact/*/*.zip ./artifact/release run: mkdir -p ./artifact/release && mv ./artifact/*/*.zip ./artifact/release
- name: Create release - name: Create release
id: create_release id: create_release
@ -152,7 +152,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.tag.outputs.name }} tag_name: ${{ steps.tag.outputs.name }}
- name: Upload release - name: Upload release
id: upload_release id: upload_release
if: ${{ github.event.inputs.create_release == 'true' }} if: ${{ github.event.inputs.create_release == 'true' }}