Change shell from bash to PowerShell in workflow #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check System Architecture | |
| on: | |
| workflow_dispatch: | |
| push: | |
| jobs: | |
| test-cache: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04-arm, windows-11-arm, macos-latest, windows-latest] | |
| steps: | |
| - name: Check System Architecture | |
| # shell: bash | |
| shell: pwsh | |
| run: | | |
| Write-Host "Python platform.machine(): $(python -c 'import platform; print(platform.machine())')" | |
| Write-Host "Python platform.architecture(): $(python -c 'import platform; print(platform.architecture())')" | |
| Write-Host "Python platform.processor(): $(python -c 'import platform; print(platform.processor())')" | |
| Write-Host "PowerShell \$env:PROCESSOR_ARCHITECTURE: $env:PROCESSOR_ARCHITECTURE" | |
| Write-Host "PowerShell \$env:PROCESSOR_IDENTIFIER: $env:PROCESSOR_IDENTIFIER" | |
| Write-Host "(Get-CimInstance Win32_Processor).Architecture: $((Get-CimInstance Win32_Processor).Architecture)" | |
| Write-Host "uname -m: $(uname -m)" |