fix: use pwsh. not powershell
This commit is contained in:
parent
46256a29bf
commit
0c17029dfe
7
.github/workflows/nuitka.yml
vendored
7
.github/workflows/nuitka.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
python-version: ["3.8", "3.10", "3.11"]
|
python-version: ["3.8", "3.10"] # 3.11 will come later
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -38,6 +38,7 @@ jobs:
|
|||||||
- name: Get short commit sha (powershell)
|
- name: Get short commit sha (powershell)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: get_short_sha_powershell
|
id: get_short_sha_powershell
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$short_sha = echo $`{GITHUB_SHA`}
|
$short_sha = echo $`{GITHUB_SHA`}
|
||||||
$short_sha = $short_sha.substring(1,7)
|
$short_sha = $short_sha.substring(1,7)
|
||||||
@ -64,7 +65,7 @@ jobs:
|
|||||||
# 还是得我自己写脚本
|
# 还是得我自己写脚本
|
||||||
- name: Build on Windows
|
- name: Build on Windows
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: powershell7
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
./action_build.ps1
|
./action_build.ps1
|
||||||
# $arg = "--standalone --assume-yes-for-download "
|
# $arg = "--standalone --assume-yes-for-download "
|
||||||
@ -78,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build on MacOS / Linux
|
- name: Build on MacOS / Linux
|
||||||
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
||||||
shell: powershell
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
arg="--standalone --assume-yes-for-download --output-dir=build "
|
arg="--standalone --assume-yes-for-download --output-dir=build "
|
||||||
arg+="--clang --lto=no "
|
arg+="--clang --lto=no "
|
||||||
|
Loading…
Reference in New Issue
Block a user