Skip to content

Commit

Permalink
Testing on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Agazoth committed Oct 10, 2023
1 parent 180f71e commit 7b50843
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 301 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,9 @@ jobs:
name: PSParquet
path: ./output/

- name: Install the module
run: |
Import-Module ./Artifact/$ModuleName -Force -Verbose -Debug
Get-Command -Module $ModuleName
shell: pwsh

release:
needs: build
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
# Check out the main branch
- uses: actions/checkout@main
Expand Down
9 changes: 5 additions & 4 deletions PSParquet.psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ Task BuildBinaries {
$Script:CmdletsToExport = foreach ($dll in $(Get-ChildItem "$Script:BuildDir\src\$Script:ModuleName\bin\Debug\net7.0" -filter *dll)) {
if (!$(Test-Path $Script:DevOutputFolder)) { New-Item -ItemType Directory -Path $Script:DevOutputFolder -Force }
Copy-Item -Path $dll -Destination $Script:DevOutputFolder -force
Copy-Item -Path $dll -Destination $Script:DevBinfolder -force
if ($dll.BaseName -eq $Script:ModuleName) {
$cs = Start-Job -ScriptBlock { Import-Module $args -PassThru | Select-Object -ExpandProperty ExportedCommands } -ArgumentList $dll.FullName | Wait-Job | Receive-Job
Update-ModuleManifest -Path $Script:psd1 -FunctionsToExport $cs.Keys -NestedModules "bin/$($dll.name)"
$PlacedDll = Copy-Item -Path $dll -Destination $Script:DevBinfolder -force -PassThru
if ($PlacedDll.BaseName -eq $Script:ModuleName) {
$PlacedDll.FullName | foreach { Write-Verbose $_ -Verbose }
$cs = Start-Job -ScriptBlock { Import-Module $args -Verbose -PassThru | Select-Object -ExpandProperty ExportedCommands } -ArgumentList $dll.FullName | Wait-Job | Receive-Job
Update-ModuleManifest -Path $Script:psd1 -FunctionsToExport $cs.Keys -NestedModules "bin/$($PlacedDll.name)"
}
}
}
Expand Down
Binary file modified PSParquet/bin/PSParquet.dll
Binary file not shown.
Binary file modified output/PSParquet/bin/PSParquet.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
255 changes: 0 additions & 255 deletions src/PSParquet/bin/Debug/net7.0/PSParquet.deps.json

This file was deleted.

Binary file removed src/PSParquet/bin/Debug/net7.0/PSParquet.dll
Binary file not shown.
Binary file removed src/PSParquet/bin/Debug/net7.0/PSParquet.pdb
Binary file not shown.
22 changes: 0 additions & 22 deletions src/PSParquet/obj/Debug/net7.0/PSParquet.AssemblyInfo.cs

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
/home/runner/work/PSParquet/PSParquet/src/PSParquet/obj/Debug/net7.0/refint/PSParquet.dll
/home/runner/work/PSParquet/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.pdb
/home/runner/work/PSParquet/PSParquet/src/PSParquet/obj/Debug/net7.0/ref/PSParquet.dll
/mnt/c/repos/PSParquet/src/PSParquet/bin/Debug/net7.0/PSParquet.deps.json
/mnt/c/repos/PSParquet/src/PSParquet/bin/Debug/net7.0/PSParquet.dll
/mnt/c/repos/PSParquet/src/PSParquet/bin/Debug/net7.0/PSParquet.pdb
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.csproj.AssemblyReference.cache
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.GeneratedMSBuildEditorConfig.editorconfig
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.AssemblyInfoInputs.cache
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.AssemblyInfo.cs
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.csproj.CoreCompileInputs.cache
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.dll
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/refint/PSParquet.dll
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/PSParquet.pdb
/mnt/c/repos/PSParquet/src/PSParquet/obj/Debug/net7.0/ref/PSParquet.dll
C:\repos\PSParquet\src\PSParquet\bin\Debug\net7.0\PSParquet.deps.json
C:\repos\PSParquet\src\PSParquet\bin\Debug\net7.0\PSParquet.dll
C:\repos\PSParquet\src\PSParquet\bin\Debug\net7.0\PSParquet.pdb
Expand Down
Binary file removed src/PSParquet/obj/Debug/net7.0/PSParquet.dll
Binary file not shown.
Binary file removed src/PSParquet/obj/Debug/net7.0/PSParquet.pdb
Binary file not shown.
Binary file removed src/PSParquet/obj/Debug/net7.0/ref/PSParquet.dll
Binary file not shown.
Binary file removed src/PSParquet/obj/Debug/net7.0/refint/PSParquet.dll
Binary file not shown.

0 comments on commit 7b50843

Please sign in to comment.