diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f6a0da8..e9437a1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,7 +5,7 @@ on: pull_request: merge_group: schedule: # Trigger a job on default branch at 4AM PST everyday - - cron: "0 11 * * *" + - cron: '0 11 * * *' concurrency: group: ${{ github.workflow }}-${{ github.event.compare || github.head_ref || github.ref }} @@ -75,11 +75,8 @@ jobs: - name: Install Winget uses: ./.github/actions/install-winget with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install Winget PowerShell Module - shell: pwsh - run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force + # windows-11-arm runner image does not include winget-cli (see https://github.com/actions/partner-runner-images/issues/95). + force-cli-install: ${{ matrix.runner.name == 'windows-11-arm' && 'true' || 'false' }} - name: Install LLVM ${{ matrix.llvm }} uses: ./.github/actions/install-llvm diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 210b5ec..fec6a36 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -5,7 +5,7 @@ on: pull_request: merge_group: schedule: # Trigger a job on default branch at 4AM PST everyday - - cron: "0 11 * * *" + - cron: '0 11 * * *' concurrency: group: ${{ github.workflow }}-${{ github.event.compare || github.head_ref || github.ref }} @@ -73,11 +73,8 @@ jobs: - name: Install Winget uses: ./.github/actions/install-winget with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install Winget PowerShell Module - shell: pwsh - run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force + # windows-11-arm runner image does not include winget-cli (see https://github.com/actions/partner-runner-images/issues/95). + force-cli-install: ${{ matrix.runner.name == 'windows-11-arm' && 'true' || 'false' }} - name: Install LLVM ${{ matrix.llvm }} uses: ./.github/actions/install-llvm diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index df24fb4..a3bacda 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,7 +5,7 @@ on: pull_request: merge_group: schedule: # Trigger a job on default branch at 4AM PST everyday - - cron: "0 11 * * *" + - cron: '0 11 * * *' concurrency: group: ${{ github.workflow }}-${{ github.event.compare || github.head_ref || github.ref }} @@ -71,11 +71,8 @@ jobs: - name: Install Winget uses: ./.github/actions/install-winget with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install Winget PowerShell Module - shell: pwsh - run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force + # windows-11-arm runner image does not include winget-cli (see https://github.com/actions/partner-runner-images/issues/95). + force-cli-install: ${{ matrix.runner.name == 'windows-11-arm' && 'true' || 'false' }} - name: Install LLVM ${{ matrix.llvm }} uses: ./.github/actions/install-llvm @@ -115,35 +112,6 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - name: Checkout windows-drivers-rs actions - uses: actions/checkout@v4 - with: - repository: microsoft/windows-drivers-rs - ref: main - path: _temp/windows-drivers-rs - sparse-checkout: | - .github/actions - sparse-checkout-cone-mode: false - - - name: Copy actions to workspace - shell: pwsh - run: Copy-Item -Recurse -Force _temp/windows-drivers-rs/.github/actions .github/ - - - name: Install Winget - uses: ./.github/actions/install-winget - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install Winget PowerShell Module - shell: pwsh - run: Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Force - - - name: Install WDK (${{ matrix.wdk }}) - uses: ./.github/actions/install-wdk - with: - version: ${{ matrix.wdk }} - source: winget - - name: Install Rust Toolchain uses: dtolnay/rust-toolchain@stable