mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Install uv in CI using a GitHub Action
The Action has a couple of advantages over pipx: - It verifies the checksum of the downloaded binary - It caches the installed uv - It caches UV's own package cache
This commit is contained in:
@@ -219,12 +219,16 @@ jobs:
|
||||
working-directory: cpp
|
||||
run: ctest --test-dir build --build-config ${{ env.CMAKE_CONFIG }} --output-on-failure --parallel
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
|
||||
with:
|
||||
version: "0.8.20"
|
||||
|
||||
- name: Install packages for building docs (Linux)
|
||||
working-directory: docs
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-upgrade doxygen
|
||||
pipx install uv
|
||||
uv sync --locked
|
||||
if: runner.os == 'Linux'
|
||||
|
||||
@@ -243,7 +247,6 @@ jobs:
|
||||
|
||||
echo "${{ github.workspace }}\doxygen-1.13.2.windows.x64.bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
pipx install uv
|
||||
uv sync --locked
|
||||
if: runner.os == 'Windows'
|
||||
|
||||
|
||||
@@ -81,6 +81,11 @@ jobs:
|
||||
with:
|
||||
python-version: '3.13'
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
|
||||
with:
|
||||
version: "0.8.20"
|
||||
|
||||
- name: Install packages for building docs
|
||||
working-directory: docs
|
||||
run: |
|
||||
@@ -96,7 +101,6 @@ jobs:
|
||||
|
||||
echo "${{ github.workspace }}\doxygen-1.13.2.windows.x64.bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
pipx install uv
|
||||
uv sync --locked
|
||||
|
||||
- name: Build docs
|
||||
|
||||
Reference in New Issue
Block a user