Skip to content

Improve the workflow for Windows build #288

Improve the workflow for Windows build

Improve the workflow for Windows build #288

Workflow file for this run

name: Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Clean up diskspace
run: sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.5.0'
linux-local-args: '["--toolkit"]'
- uses: actions/setup-go@v5
with:
go-version: '1.22.5'
- run: nvcc -V
- run: df -h
- uses: actions/checkout@v3
- name: Build ffmpeg
run: cd third_party && bash install_ffmpeg.sh
- name: Install cutlass
run: cd third_party && bash install_cutlass.sh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DWITH_CUDA=ON
-DWITH_FFMPEG=ON
-DWITH_CUTLASS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: ctest --verbose -C ${{env.BUILD_TYPE}} --test-dir ${{github.workspace}}/build/src/libllm
- name: Create release package
run: cd ${{github.workspace}}/build/ && zip release-linux-x64-cuda.zip
llm
libllm.so
libllmplugincublas.so
libllmpluginffmpeg.so
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{github.workspace}}/build/release-linux-x64-cuda.zip