Skip to content

Update test.yaml

Update test.yaml #8

Workflow file for this run

name: Full Test Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-windows:

Check failure on line 9 in .github/workflows/myexe.yaml

View workflow run for this annotation

GitHub Actions / Full Test Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/myexe.yaml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
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