@@ -10,12 +10,16 @@ jobs:
10
10
steps :
11
11
- name : Check out repository code
12
12
uses : actions/checkout@v4
13
- - uses : actions/cache@v4
14
- with :
15
- path : |
16
- ${{ github.workspace }}/../Nuitka-Python-Deps
17
- dep-build
18
- key : ${{ runner.os }}-arm-${{ hashFiles('build.mac.sh') }}
13
+ - name : Download cache
14
+ env :
15
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
16
+ run : |
17
+ cd ..
18
+ export "file_name=NP_mac-arm-${{ hashFiles('build.mac.sh') }}.zip"
19
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
20
+ curl -L "$file_url" -o "$file_name" || exit 0
21
+ unzip -q "$file_name" || exit 0
22
+ rm ${file_name} || exit 0
19
23
- name : Uninstall homebrew
20
24
run : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
21
25
- name : Run Build
@@ -26,18 +30,33 @@ jobs:
26
30
with :
27
31
name : Nuitka-Python311_mac_arm64
28
32
path : ${{ github.workspace }}/Nuitka-Python-Out
33
+ - name : Store cache
34
+ env :
35
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
36
+ run : |
37
+ cd ..
38
+ export "file_name=NP_mac-arm-${{ hashFiles('build.mac.sh') }}.zip"
39
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
40
+ rm -rf ${file_name}
41
+ zip -r ${file_name} Nuitka-Python-Deps Nuitka-Python/dep-build
42
+ curl -H "x-ms-blob-type: BlockBlob" --upload-file ${file_name} --url "$file_url"
43
+ rm -rf ${file_name}
29
44
mac_x64 :
30
45
name : MacOS Intel Build
31
46
runs-on : macos-latest
32
47
steps :
33
48
- name : Check out repository code
34
49
uses : actions/checkout@v4
35
- - uses : actions/cache@v4
36
- with :
37
- path : |
38
- ${{ github.workspace }}/Nuitka-Python-Deps
39
- dep-build
40
- key : ${{ runner.os }}-intel-${{ hashFiles('build.mac.sh') }}
50
+ - name : Download cache
51
+ env :
52
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
53
+ run : |
54
+ cd ..
55
+ export "file_name=NP_mac-intel-${{ hashFiles('build.mac.sh') }}.zip"
56
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
57
+ curl -L "$file_url" -o "$file_name" || exit 0
58
+ unzip -q "$file_name" || exit 0
59
+ rm ${file_name} || exit 0
41
60
- name : Uninstall homebrew
42
61
run : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
43
62
- name : Run Build
@@ -48,19 +67,34 @@ jobs:
48
67
with :
49
68
name : Nuitka-Python311_mac_x86_64
50
69
path : ${{ github.workspace }}/Nuitka-Python-Out
70
+ - name : Store cache
71
+ env :
72
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
73
+ run : |
74
+ cd ..
75
+ export "file_name=NP_mac-intel-${{ hashFiles('build.mac.sh') }}.zip"
76
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
77
+ rm -rf ${file_name}
78
+ zip -r ${file_name} Nuitka-Python-Deps Nuitka-Python/dep-build
79
+ curl -H "x-ms-blob-type: BlockBlob" --upload-file ${file_name} --url "$file_url"
80
+ rm -rf ${file_name}
51
81
52
82
mac_arm_no_lto :
53
83
name : MacOS ARM Build No LTO
54
84
runs-on : macos-latest
55
85
steps :
56
86
- name : Check out repository code
57
87
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-no_lto-${{ hashFiles('build.mac.sh') }}
88
+ - name : Download cache
89
+ env :
90
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
91
+ run : |
92
+ cd ..
93
+ export "file_name=NP_mac-arm-no_lto-${{ hashFiles('build.mac.sh') }}.zip"
94
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
95
+ curl -L "$file_url" -o "$file_name" || exit 0
96
+ unzip -q "$file_name" || exit 0
97
+ rm ${file_name} || exit 0
64
98
- name : Uninstall homebrew
65
99
run : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
66
100
- name : Run Build
@@ -71,18 +105,33 @@ jobs:
71
105
with :
72
106
name : Nuitka-Python311_mac_arm64_No_LTO
73
107
path : ${{ github.workspace }}/Nuitka-Python-Out
108
+ - name : Store cache
109
+ env :
110
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
111
+ run : |
112
+ cd ..
113
+ export "file_name=NP_mac-arm-no_lto-${{ hashFiles('build.mac.sh') }}.zip"
114
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
115
+ rm -rf ${file_name}
116
+ zip -r ${file_name} Nuitka-Python-Deps Nuitka-Python/dep-build
117
+ curl -H "x-ms-blob-type: BlockBlob" --upload-file ${file_name} --url "$file_url"
118
+ rm -rf ${file_name}
74
119
mac_x64_no_lto :
75
120
name : MacOS Intel Build No LTO
76
121
runs-on : macos-latest
77
122
steps :
78
123
- name : Check out repository code
79
124
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-no_lto-${{ hashFiles('build.mac.sh') }}
125
+ - name : Download cache
126
+ env :
127
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
128
+ run : |
129
+ cd ..
130
+ export "file_name=NP_mac-intel-no_lto-${{ hashFiles('build.mac.sh') }}.zip"
131
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
132
+ curl -L "$file_url" -o "$file_name" || exit 0
133
+ unzip -q "$file_name" || exit 0
134
+ rm ${file_name} || exit 0
86
135
- name : Uninstall homebrew
87
136
run : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
88
137
- name : Run Build
@@ -93,19 +142,34 @@ jobs:
93
142
with :
94
143
name : Nuitka-Python311_mac_x86_64_No_LTO
95
144
path : ${{ github.workspace }}/Nuitka-Python-Out
145
+ - name : Store cache
146
+ env :
147
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
148
+ run : |
149
+ cd ..
150
+ export "file_name=NP_mac-intel-no_lto-${{ hashFiles('build.mac.sh') }}.zip"
151
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
152
+ rm -rf ${file_name}
153
+ zip -r ${file_name} Nuitka-Python-Deps Nuitka-Python/dep-build
154
+ curl -H "x-ms-blob-type: BlockBlob" --upload-file ${file_name} --url "$file_url"
155
+ rm -rf ${file_name}
96
156
97
157
linux :
98
158
name : Ubuntu Build
99
159
runs-on : ubuntu-latest
100
160
steps :
101
161
- name : Check out repository code
102
162
uses : actions/checkout@v4
103
- - uses : actions/cache@v4
104
- with :
105
- path : |
106
- ${{ github.workspace }}/../Nuitka-Python-Deps
107
- dep-build
108
- key : ${{ runner.os }}-${{ hashFiles('build.sh') }}
163
+ - name : Download cache
164
+ env :
165
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
166
+ run : |
167
+ cd ..
168
+ export "file_name=NP_ubuntu-${{ hashFiles('build.sh') }}.zip"
169
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
170
+ curl -L "$file_url" -o "$file_name" || exit 0
171
+ unzip -q "$file_name" || exit 0
172
+ rm ${file_name} || exit 0
109
173
- name : Run Build
110
174
run : bash build.sh "${{ github.workspace }}/Nuitka-Python-Out"
111
175
- name : Cleanup artifact
@@ -114,6 +178,17 @@ jobs:
114
178
with :
115
179
name : Nuitka-Python311_ubuntu
116
180
path : ${{ github.workspace }}/Nuitka-Python-Out
181
+ - name : Store cache
182
+ env :
183
+ CACHE_SAS : ${{ secrets.CACHE_SAS }}
184
+ run : |
185
+ cd ..
186
+ export "file_name=NP_mac-intel-no_lto-${{ hashFiles('build.sh') }}.zip"
187
+ export "file_url=https://nuitkapythonci.blob.core.windows.net/job-cache/${file_name}?${CACHE_SAS}"
188
+ rm -rf ${file_name}
189
+ zip -r ${file_name} Nuitka-Python-Deps Nuitka-Python/dep-build
190
+ curl -H "x-ms-blob-type: BlockBlob" --upload-file ${file_name} --url "$file_url"
191
+ rm -rf ${file_name}
117
192
118
193
windows :
119
194
name : Windows Build
0 commit comments