fixed tests
This commit is contained in:
20
.github/workflows/build-boost-packages.yml
vendored
20
.github/workflows/build-boost-packages.yml
vendored
@@ -105,7 +105,13 @@ jobs:
|
|||||||
- name: Extract files
|
- name: Extract files
|
||||||
run: |
|
run: |
|
||||||
$artifactName = "${{ env.ARTIFACT_NAME }}.tar.gz"
|
$artifactName = "${{ env.ARTIFACT_NAME }}.tar.gz"
|
||||||
tar -xzf $artifactName
|
If ("${{ matrix.platform }}" -eq "win32") {
|
||||||
|
$assetTarPath = $artifactName.TrimEnd(".tar.gz")
|
||||||
|
7z x $artifactName -o"$assetTarPath" -y | Out-Null
|
||||||
|
7z x $assetTarPath -y | Out-Null
|
||||||
|
} else {
|
||||||
|
tar -xzf $artifactName
|
||||||
|
}
|
||||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||||
|
|
||||||
- name: Apply build artifact to the local machine
|
- name: Apply build artifact to the local machine
|
||||||
@@ -115,14 +121,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup BOOST_ROOT ${{ github.event.inputs.VERSION }}
|
- name: Setup BOOST_ROOT ${{ github.event.inputs.VERSION }}
|
||||||
run: |
|
run: |
|
||||||
$targetPath = $env:AGENT_TOOLSDIRECTORY
|
Import-Module (Join-Path $env:GITHUB_WORKSPACE "helpers" | Join-Path -ChildPath "common-helpers.psm1") -DisableNameChecking
|
||||||
if ([string]::IsNullOrEmpty($targetPath)) {
|
$boostDirectory = GetToolDirectory -ToolName "boost" -Version "${{ github.event.inputs.VERSION }}" -Architecture "${{ matrix.architecture }}"
|
||||||
# GitHub Windows images don't have `AGENT_TOOLSDIRECTORY` variable
|
|
||||||
$targetPath = $env:RUNNER_TOOL_CACHE
|
|
||||||
}
|
|
||||||
$BoostToolcachePath = Join-Path -Path $targetPath -ChildPath "boost"
|
|
||||||
$BoostToolcacheVersionPath = Join-Path -Path $BoostToolcachePath -ChildPath "${{ github.event.inputs.VERSION }}"
|
|
||||||
$boostDirectory = Join-Path $BoostToolcacheVersionPath "${{ matrix.architecture }}"
|
|
||||||
$LD_LIBRARY = Join-Path -Path $boostDirectory -ChildPath "lib"
|
$LD_LIBRARY = Join-Path -Path $boostDirectory -ChildPath "lib"
|
||||||
Write-Host "BOOST_ROOT = ${boostDirectory}"
|
Write-Host "BOOST_ROOT = ${boostDirectory}"
|
||||||
echo "::set-env name=BOOST_ROOT::${boostDirectory}"
|
echo "::set-env name=BOOST_ROOT::${boostDirectory}"
|
||||||
@@ -188,4 +188,4 @@ jobs:
|
|||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
workflow_id: 'create-pr.yml',
|
workflow_id: 'create-pr.yml',
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
});
|
});
|
||||||
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,4 +1,4 @@
|
|||||||
[submodule "helpers"]
|
[submodule "helpers"]
|
||||||
path = helpers
|
path = helpers
|
||||||
url = https://github.com/actions/versions-package-tools
|
url = https://github.com/actions/versions-package-tools
|
||||||
branch = v-nibyko/test-branch
|
branch = v-nibyko/boost
|
||||||
|
|||||||
2
helpers
2
helpers
Submodule helpers updated: 9fd8fba93d...eb3ed375cc
Reference in New Issue
Block a user