Skip to content

Commit 690d1e6

Browse files
committed
CI: Fix env:HOME
1 parent ced1cc5 commit 690d1e6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/.craft.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
if ($IsWindows) {
2-
if (-not ${env:HOME}) {
3-
$env:HOME = "${env:USERPROFILE}"
4-
}
52
$python = (Get-Command py).Source
63
$python=(py -c "import sys; print(sys.executable)")
74
} else {

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,17 @@ jobs:
7171
~/ccache
7272
key: ${{ runner.os }}-${{ matrix.target }}
7373

74-
- name: Clone CraftMaster
74+
75+
- name: Update env
7576
run: |
77+
# $env:HOME might not be set on Windows
7678
if ($IsWindows -and (-not ${env:HOME})) {
77-
$env:HOME = "${env:USERPROFILE}"
79+
echo "HOME = ${env:USERPROFILE}" | Out-File -FilePath $env:GITHUB_OUTPUT -Append -Encoding utf8
7880
}
81+
82+
83+
- name: Clone CraftMaster
84+
run: |
7985
git clone --depth=1 https://invent.kde.org/kde/craftmaster.git "${env:HOME}/craft/CraftMaster/CraftMaster"
8086
8187
- name: Craft setup

0 commit comments

Comments
 (0)