Skip to content

Commit bb9054d

Browse files
Fix for the build failures on the ubuntu 24.04 runner (#302)
* Update build-python-packages.yml * Update build-python-packages.yml
1 parent c8a840c commit bb9054d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-python-packages.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-12,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' }}".Split(",").Trim()
4343
$matrix = @()
44-
44+
4545
foreach ($configuration in $configurations) {
4646
$parts = $configuration.Split("_")
4747
$os = $parts[0]
@@ -69,7 +69,7 @@ jobs:
6969
}
7070
}
7171
echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT
72-
72+
7373
build_python:
7474
needs: generate_matrix
7575
strategy:
@@ -102,7 +102,10 @@ jobs:
102102
# Install 7-Zip
103103
choco install 7zip -y
104104
echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
105-
105+
106+
- name: Disable needrestart prompts
107+
if: matrix.os == 'setup-actions-ubuntu24-arm64-2-core'
108+
run: echo 'NEEDRESTART_MODE=a' | sudo tee /etc/needrestart/needrestart.conf
106109

107110
- name: Check out repository code
108111
uses: actions/checkout@v4
@@ -113,7 +116,7 @@ jobs:
113116
run: |
114117
./builders/build-python.ps1 -Version $env:VERSION `
115118
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
116-
119+
117120
- name: Publish artifact
118121
uses: actions/upload-artifact@v4
119122
with:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy