[CI] Remove unused PATH env configuration from build-and-run workflow
#11
This file contains hidden or 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: GPULlama3 Build & Run | ||
|
Check failure on line 1 in .github/workflows/build-and-run.yml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| jobs: | ||
| build-and-run: | ||
| runs-on: self-hosted | ||
| env: | ||
| # TornadoVM paths | ||
| TORNADO_ROOT: ${{ github.workspace }}/GPULlama3.java/external/tornadovm | ||
| TORNADO_SDK: ${{ github.workspace }}/GPULlama3.java/external/tornadovm/bin/sdk | ||
| # Java | ||
| JAVA_HOME: /opt/jenkins/jdks/graal-23.1.0/jdk-21.0.3 | ||
| PATH: /opt/jenkins/jdks/graal-23.1.0/jdk-21.0.3/bin:${{ github.workspace }}/GPULlama3.java/external/tornadovm/dist/tornado-sdk/tornado-sdk-1.1.2-dev-e1d2d12/bin:$PATH | ||
| steps: | ||
| - name: Checkout GPULlama3 | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| repository: beehive-lab/GPULlama3.java | ||
| fetch-depth: 0 | ||
| git-clone: true # forces git clone instead of archive download | ||
| - name: Clone TornadoVM explicitly | ||
| run: | | ||
| git clone --branch master https://github.com/beehive-lab/TornadoVM.git GPULlama3.java/external/tornadovm | ||
| cd GPULlama3.java/external/tornadovm | ||
| git pull origin master | ||
| - name: Verify Java | ||
| run: | | ||
| java -version | ||
| echo "JAVA_HOME=$JAVA_HOME" | ||
| - name: Set up Python 3 | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Create Python venv | ||
| run: | | ||
| cd GPULlama3.java/external/tornadovm | ||
| python3 -m venv venv | ||
| source venv/bin/activate | ||
| - name: Build TornadoVM | ||
| run: | | ||
| cd GPULlama3.java/external/tornadovm | ||
| source venv/bin/activate | ||
| make graal-jdk-21 | ||
| # Verify TornadoVM | ||
| tornado --devices | ||
| - name: Build GPULlama3 | ||
| run: | | ||
| cd GPULlama3.java | ||
| make | ||
| - name: Run llama-tornado test prompt | ||
| run: | | ||
| cd GPULlama3.java | ||
| ./llama-tornado --gpu --opencl --model ../Llama-3.2-1B-Instruct-F16.gguf --prompt "Say hello" | ||