Skip to content

Commit bb64e19

Browse files
authored
Another windows fix. (#13)
Again paths...
1 parent f6e31fe commit bb64e19

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

action.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ runs:
4747
with:
4848
toit-version: 'v2.0.0-alpha.174'
4949

50-
- name: Install Toit packages
50+
- name: Install Toit packages (Posix)
51+
if: runner.os == 'Linux' || runner.os == 'macOS'
5152
shell: bash
5253
run: |
5354
cd ${{ github.action_path }}
@@ -59,7 +60,6 @@ runs:
5960
INPUT_PATH: ${{ inputs.path }}
6061
shell: bash
6162
run: |
62-
echo "Running"
6363
IFS=$'\n' read -r -a paths <<< "$INPUT_PATH"
6464
6565
function sign_file() {
@@ -86,6 +86,13 @@ runs:
8686
fi
8787
done
8888
89+
- name: Install Toit packages (Windows)
90+
if: runner.os == 'Windows'
91+
shell: powershell
92+
run: |
93+
cd ${{ github.action_path }}
94+
toit pkg install
95+
8996
- name: Sign (Windows)
9097
if: runner.os == 'Windows'
9198
env:
@@ -101,10 +108,8 @@ runs:
101108
param(
102109
[string]$Path
103110
)
104-
Write-Host "Signing: $Path"
105111
if (-not [string]::IsNullOrEmpty($Path)) {
106112
$outputFile = New-TemporaryFile
107-
Write-Host "Temporary file created: $($outputFile.FullName)"
108113
109114
$toitCommand = "toit"
110115
$toitArgs = @(
@@ -119,8 +124,6 @@ runs:
119124
& $toitCommand @toitArgs
120125
121126
Move-Item -Path "$outputFile.FullName" -Destination "$Path" -Force
122-
123-
Write-Host "Command executed and output moved for: $Path"
124127
}
125128
}
126129

0 commit comments

Comments
 (0)