Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for the build failures on the ubuntu 24.04 runner #302

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build-python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
[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()
$matrix = @()

foreach ($configuration in $configurations) {
$parts = $configuration.Split("_")
$os = $parts[0]
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
}
}
echo "matrix=$($matrix | ConvertTo-Json -Compress -AsArray)" >> $env:GITHUB_OUTPUT

build_python:
needs: generate_matrix
strategy:
Expand Down Expand Up @@ -102,7 +102,10 @@ jobs:
# Install 7-Zip
choco install 7zip -y
echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8


- name: Disable needrestart prompts
if: matrix.os == 'setup-actions-ubuntu24-arm64-2-core'
run: echo 'NEEDRESTART_MODE=a' | sudo tee /etc/needrestart/needrestart.conf

- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -113,7 +116,7 @@ jobs:
run: |
./builders/build-python.ps1 -Version $env:VERSION `
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}

- name: Publish artifact
uses: actions/upload-artifact@v4
with:
Expand Down