Skip to content

Commit d34cd3c

Browse files
committed
ci: Build LTO-free versions
1 parent 03eab53 commit d34cd3c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

+45
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,51 @@ jobs:
4949
name: Nuitka-Python311_mac_x86_64
5050
path: ${{ github.workspace }}/Nuitka-Python-Out
5151

52+
mac_arm_no_lto:
53+
name: MacOS ARM Build No LTO
54+
runs-on: macos-latest
55+
steps:
56+
- name: Check out repository code
57+
uses: actions/checkout@v4
58+
- uses: actions/cache@v4
59+
with:
60+
path: |
61+
${{ github.workspace }}/../Nuitka-Python-Deps
62+
dep-build
63+
key: ${{ runner.os }}-arm-${{ hashFiles('build.mac.sh') }}
64+
- name: Uninstall homebrew
65+
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
66+
- name: Run Build
67+
run: bash build.mac.sh --no-lto "${{ github.workspace }}/Nuitka-Python-Out"
68+
- name: Cleanup artifact
69+
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
70+
- uses: actions/upload-artifact@v4
71+
with:
72+
name: Nuitka-Python311_mac_arm64_No_LTO
73+
path: ${{ github.workspace }}/Nuitka-Python-Out
74+
mac_x64_no_lto:
75+
name: MacOS Intel Build No LTO
76+
runs-on: macos-latest
77+
steps:
78+
- name: Check out repository code
79+
uses: actions/checkout@v4
80+
- uses: actions/cache@v4
81+
with:
82+
path: |
83+
${{ github.workspace }}/Nuitka-Python-Deps
84+
dep-build
85+
key: ${{ runner.os }}-intel-${{ hashFiles('build.mac.sh') }}
86+
- name: Uninstall homebrew
87+
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
88+
- name: Run Build
89+
run: arch -x86_64 bash build.mac.sh --no-lto "${{ github.workspace }}/Nuitka-Python-Out"
90+
- name: Cleanup artifact
91+
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
92+
- uses: actions/upload-artifact@v4
93+
with:
94+
name: Nuitka-Python311_mac_x86_64_No_LTO
95+
path: ${{ github.workspace }}/Nuitka-Python-Out
96+
5297
linux:
5398
name: Ubuntu Build
5499
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)