mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.4]Add UseDotnet task for installing dotnet (#25080)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
This commit is contained in:
co-authored by
Aditya Patwardhan
parent
78e2a13ed9
commit
61ce3a3dcc
@@ -27,7 +27,7 @@ runs:
|
||||
- name: Bootstrap
|
||||
run: |-
|
||||
Import-Module ./build.psm1
|
||||
Start-PSBootstrap -Package
|
||||
Start-PSBootstrap -Scenario Package
|
||||
shell: pwsh
|
||||
- name: Capture Artifacts Directory
|
||||
continue-on-error: true
|
||||
|
||||
@@ -31,6 +31,10 @@ runs:
|
||||
run: Get-ChildItem "${{ github.workspace }}\build\*" -Recurse
|
||||
shell: pwsh
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
global-json-file: .\global.json
|
||||
|
||||
- name: Bootstrap
|
||||
shell: powershell
|
||||
run: |-
|
||||
@@ -50,7 +54,6 @@ runs:
|
||||
if: success()
|
||||
run: |-
|
||||
Import-Module .\build.psm1 -force
|
||||
Start-PSBootstrap
|
||||
Import-Module .\tools\ci.psm1
|
||||
Restore-PSOptions -PSOptionsPath '${{ github.workspace }}\build\psoptions.json'
|
||||
$options = (Get-PSOptions)
|
||||
|
||||
@@ -77,6 +77,7 @@ jobs:
|
||||
uses: actions/checkout@v4.1.0
|
||||
with:
|
||||
fetch-depth: 1000
|
||||
|
||||
- name: Build
|
||||
uses: "./.github/actions/build/ci"
|
||||
linux_test_unelevated_ci:
|
||||
@@ -187,6 +188,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
global-json-file: ./global.json
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
|
||||
|
||||
@@ -174,7 +174,7 @@ jobs:
|
||||
if: success() || failure()
|
||||
run: |-
|
||||
import-module ./build.psm1
|
||||
start-psbootstrap -package
|
||||
start-psbootstrap -Scenario package
|
||||
shell: pwsh
|
||||
ready_to_merge:
|
||||
name: macos ready to merge
|
||||
|
||||
Reference in New Issue
Block a user