build: Retry downloads to avoid transient CI issues. #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 3.11 | |
jobs: | |
mac_arm: | |
name: MacOS ARM Build | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/../Nuitka-Python-Deps | |
dep-build | |
key: ${{ runner.os }}-arm-${{ hashFiles('build.mac.sh') }} | |
- name: Uninstall homebrew | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" | |
- name: Run Build | |
run: bash build.mac.sh "${{ github.workspace }}/Nuitka-Python-Out" | |
- name: Cleanup artifact | |
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_mac_arm64 | |
path: ${{ github.workspace }}/Nuitka-Python-Out | |
mac_x64: | |
name: MacOS Intel Build | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/Nuitka-Python-Deps | |
dep-build | |
key: ${{ runner.os }}-intel-${{ hashFiles('build.mac.sh') }} | |
- name: Uninstall homebrew | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" | |
- name: Run Build | |
run: arch -x86_64 bash build.mac.sh "${{ github.workspace }}/Nuitka-Python-Out" | |
- name: Cleanup artifact | |
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_mac_x86_64 | |
path: ${{ github.workspace }}/Nuitka-Python-Out | |
mac_arm_no_lto: | |
name: MacOS ARM Build No LTO | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/../Nuitka-Python-Deps | |
dep-build | |
key: ${{ runner.os }}-arm-no_lto-${{ hashFiles('build.mac.sh') }} | |
- name: Uninstall homebrew | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" | |
- name: Run Build | |
run: bash build.mac.sh --no-lto "${{ github.workspace }}/Nuitka-Python-Out" | |
- name: Cleanup artifact | |
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_mac_arm64_No_LTO | |
path: ${{ github.workspace }}/Nuitka-Python-Out | |
mac_x64_no_lto: | |
name: MacOS Intel Build No LTO | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/Nuitka-Python-Deps | |
dep-build | |
key: ${{ runner.os }}-intel-no_lto-${{ hashFiles('build.mac.sh') }} | |
- name: Uninstall homebrew | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" | |
- name: Run Build | |
run: arch -x86_64 bash build.mac.sh --no-lto "${{ github.workspace }}/Nuitka-Python-Out" | |
- name: Cleanup artifact | |
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_mac_x86_64_No_LTO | |
path: ${{ github.workspace }}/Nuitka-Python-Out | |
linux: | |
name: Ubuntu Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/../Nuitka-Python-Deps | |
dep-build | |
key: ${{ runner.os }}-${{ hashFiles('build.sh') }} | |
- name: Run Build | |
run: bash build.sh "${{ github.workspace }}/Nuitka-Python-Out" | |
- name: Cleanup artifact | |
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_ubuntu | |
path: ${{ github.workspace }}/Nuitka-Python-Out | |
windows: | |
name: Windows Build | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: TheMrMilchmann/setup-msvc-dev@v3 | |
with: | |
arch: x64 | |
- name: Run Build | |
shell: cmd | |
run: build.bat | |
- name: Cleanup rebuild interpreters | |
run: Get-ChildItem -Path $(Get-Location) -File -Include *.old_interp -Recurse | Remove-Item -Force -Verbose | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Nuitka-Python311_windows_x64 | |
path: output |