mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2025-12-19 09:54:15 +00:00
Remove scratch_drive input - workflow will auto-select drive
This commit is contained in:
parent
35a21e620d
commit
ad70ab47fe
1 changed files with 2 additions and 22 deletions
24
.github/workflows/build-tiny11.yml
vendored
24
.github/workflows/build-tiny11.yml
vendored
|
|
@ -19,11 +19,6 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
scratch_drive:
|
|
||||||
description: 'Scratch drive letter (C-Z, leave empty for script root)'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -230,11 +225,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
$scriptType = "${{ inputs.script_type }}"
|
$scriptType = "${{ inputs.script_type }}"
|
||||||
$isoDrive = $env:ISO_DRIVE
|
$isoDrive = $env:ISO_DRIVE
|
||||||
$scratchDrive = "${{ inputs.scratch_drive }}"
|
|
||||||
|
|
||||||
Write-Host "Running script: $scriptType.ps1"
|
Write-Host "Running script: $scriptType.ps1"
|
||||||
Write-Host "ISO Drive: $isoDrive"
|
Write-Host "ISO Drive: $isoDrive"
|
||||||
Write-Host "Scratch Drive: $scratchDrive"
|
Write-Host "Scratch Drive: Auto (script root)"
|
||||||
Write-Host "Working Directory: $PWD"
|
Write-Host "Working Directory: $PWD"
|
||||||
Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE"
|
Write-Host "GITHUB_WORKSPACE: $env:GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
|
@ -273,9 +267,7 @@ jobs:
|
||||||
$wrapperParams = @{
|
$wrapperParams = @{
|
||||||
ISODrive = "$isoDrive`:"
|
ISODrive = "$isoDrive`:"
|
||||||
}
|
}
|
||||||
if ("$scratchDrive" -ne "") {
|
# ScratchDrive not provided - script will use script root automatically
|
||||||
$wrapperParams.ScratchDrive = "$scratchDrive"
|
|
||||||
}
|
|
||||||
& $makerWrapper @wrapperParams
|
& $makerWrapper @wrapperParams
|
||||||
$exitCode = $LASTEXITCODE
|
$exitCode = $LASTEXITCODE
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -361,18 +353,6 @@ jobs:
|
||||||
Write-Host "Found ISO: $($_.FullName)"
|
Write-Host "Found ISO: $($_.FullName)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check scratch drive if specified
|
|
||||||
$scratchDrive = "${{ inputs.scratch_drive }}"
|
|
||||||
if ($scratchDrive -ne "") {
|
|
||||||
$scratchPath = "$scratchDrive`:\tiny11"
|
|
||||||
Write-Host "Checking scratch path: $scratchPath"
|
|
||||||
if (Test-Path $scratchPath) {
|
|
||||||
Get-ChildItem -Path $scratchPath -Filter "*.iso" -Recurse -ErrorAction SilentlyContinue | ForEach-Object {
|
|
||||||
Write-Host "Found ISO in scratch: $($_.FullName)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Check system drive
|
# Check system drive
|
||||||
$systemDrive = $env:SystemDrive
|
$systemDrive = $env:SystemDrive
|
||||||
$systemTiny11Path = "$systemDrive\tiny11"
|
$systemTiny11Path = "$systemDrive\tiny11"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue