Skip to content

Commit

Permalink
Use GITHUB_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Oct 29, 2024
1 parent 16ba89a commit 40ef816
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
id: setup-java
with:
distribution: 'temurin'
java-version: '8'

- uses: astral-sh/setup-uv@v3
- run: |
uv python install ${{ matrix.info.python }}
uv venv --python ${{ matrix.info.python }}
source .venv/bin/activate
uv pip install pip
echo $JAVA_HOME
echo PATH=$PATH >> $GITHUB_ENV
echo PATH=$PATH >> $GITHUB_PATH
- run: ${{ matrix.info.cmd }}

Expand All @@ -201,14 +206,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
id: setup-java
with:
distribution: 'temurin'
java-version: '8'

- uses: astral-sh/setup-uv@v3
- run: |
uv python install ${{ matrix.info.python }}
uv venv --python ${{ matrix.info.python }}
.venv\Scripts\Activate.ps1
uv pip install pip
echo PATH=%PATH% >> $GITHUB_ENV
${{ matrix.info.cmd }}
echo PATH=%PATH% >> $GITHUB_PATH
- run: ${{ matrix.info.cmd }}

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 40ef816

Please sign in to comment.