aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-06-07 09:59:39 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-06-07 10:47:36 +0100
commit0d3ef83433805d3f367130fd5bd227a8ed5a7ccd (patch)
tree8cac51baa8104000fc0d7cca074da9185fbff28d /.github
parent501aceefcf7536cbdead5bcb53b13f2fec7ab6be (diff)
downloadbitcoin-0d3ef83433805d3f367130fd5bd227a8ed5a7ccd.tar.xz
ci: Use relative paths in `win64-native` CI job consistently
This change improves readability. Also the `Tee-Object` cmdlet is used when appropriate.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e46007deef..0ea479b667 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -153,12 +153,10 @@ jobs:
- name: Get tool information
run: |
- msbuild -version | Out-File -FilePath "$env:GITHUB_WORKSPACE\msbuild_version"
- Get-Content -Path "$env:GITHUB_WORKSPACE\msbuild_version"
- $env:VCToolsVersion | Out-File -FilePath "$env:GITHUB_WORKSPACE\toolset_version"
- Write-Host "VCToolsVersion $(Get-Content -Path "$env:GITHUB_WORKSPACE\toolset_version")"
- $env:CI_QT_URL | Out-File -FilePath "$env:GITHUB_WORKSPACE\qt_url"
- $env:CI_QT_CONF | Out-File -FilePath "$env:GITHUB_WORKSPACE\qt_conf"
+ msbuild -version | Tee-Object -FilePath "msbuild_version"
+ $env:VCToolsVersion | Tee-Object -FilePath "toolset_version"
+ $env:CI_QT_URL | Out-File -FilePath "qt_url"
+ $env:CI_QT_CONF | Out-File -FilePath "qt_conf"
py -3 --version
Write-Host "PowerShell version $($PSVersionTable.PSVersion.ToString())"
@@ -242,8 +240,7 @@ jobs:
Set-Location "$env:VCPKG_INSTALLATION_ROOT"
Add-Content -Path "triplets\x64-windows-static.cmake" -Value "set(VCPKG_BUILD_TYPE release)"
.\vcpkg.exe --vcpkg-root "$env:VCPKG_INSTALLATION_ROOT" integrate install
- git rev-parse HEAD | Out-File -FilePath "$env:GITHUB_WORKSPACE\vcpkg_commit"
- Get-Content -Path "$env:GITHUB_WORKSPACE\vcpkg_commit"
+ git rev-parse HEAD | Tee-Object -FilePath "$env:GITHUB_WORKSPACE\vcpkg_commit"
- name: vcpkg tools cache
uses: actions/cache@v4