Update test.yaml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Full Test Pipeline | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build-windows: | ||
environment: release | ||
runs-on: windows-latest # Consider specifying a specific version if necessary | ||
needs: | ||
- generate-windows-cuda | ||
- generate-windows-rocm | ||
- generate-windows-cpu | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Set Version | ||
shell: bash | ||
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
cache: true | ||
- run: go get # Consider using `go install` for specific tools if applicable | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: generate-windows-cpu | ||
path: llm/llama.cpp/build | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: generate-windows-cuda | ||
path: llm/llama.cpp/build | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: windows-cuda-deps | ||
path: dist/deps | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: windows-rocm-deps | ||
path: dist/deps | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: generate-windows-rocm | ||
path: llm/llama.cpp/build | ||
- run: dir llm/llama.cpp/build | ||
- run: | | ||
$gopath=(Get-Command go).Source | Split-Path -Parent | ||
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" # Adjusted for common path | ||
cd $env:GITHUB_WORKSPACE | ||
$env:CMAKE_SYSTEM_VERSION="10.0.22621.0" | ||
$env:PATH="$gopath;$env:PATH" | ||
$env:OLLAMA_SKIP_GENERATE="1" | ||
$env:NVIDIA_DIR=$(Resolve-Path ".\dist\deps").Path | ||
$env:HIP_PATH=$(Resolve-Path ".\dist\deps").Path | ||
& .\scripts\build_windows.ps1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist-windows | ||
path: dist/*.exe |