File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Python
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : macos-latest
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ # OS info
14
+ - run : uname -a
15
+ - run : sw_vers
16
+ # We need to ensure openSSL is available
17
+ - run : HOMEBREW_NO_AUTO_UPDATE=1 brew install openssl
18
+ - run : brew list --versions openssl
19
+ - run : OPEN_SSL_DIR=$(brew --prefix openssl) && echo $OPEN_SSL_DIR
20
+ # - run: "$OPEN_SSL_DIR/bin/openssl" version
21
+ # Download, build Python, and upload it
22
+ - run : sh build_python.sh
23
+ - run : mkdir upload
24
+ - run : tar czf upload/python3-full.tar.gz python/
25
+ - uses : actions/upload-artifact@v1
26
+ with :
27
+ name : python3-full
28
+ path : ./upload/python3-full.tar.gz
29
+ # Check built Python
30
+ - run : du -sk python/
31
+ - run : cp ./python/bin/python3.7 ./python/bin/python3
32
+ - run : otool -L python/bin/python3
33
+ - run : ./python/bin/python3 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
34
+ - run : otool -L python/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so
35
+ - run : ./python/bin/python3 -m pip --version
36
+ # Reduce built Python and upload it
37
+ - run : python process_python_build.py python/
38
+ - run : echo "Python 3.7.5" >> python/version.txt
39
+ - run : tar czf upload/python3-reduced.tar.gz python/
40
+ - uses : actions/upload-artifact@v1
41
+ with :
42
+ name : python3-reduced
43
+ path : ./upload/python3-reduced.tar.gz
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ script:
43
43
- echo "Python 3.7.5" >> ./python/version.txt
44
44
- tar czf upload/python3-reduced.tar.gz python/
45
45
- curl --upload-file ./upload/python3-reduced.tar.gz https://transfer.sh/python3-reduced.tar.gz | tee -a output_urls.txt && echo "" >> output_urls.txt
46
+ # Use firefox send
47
+ - curl https://github.com/timvisee/ffsend/releases/download/v0.2.44/ffsend-v0.2.44-macos -L -o ffsend
48
+ - sudo -H chmod +x ./ffsend
49
+ -
HOMEBREW_NO_AUTO_UPDATE=1 brew install [email protected]
50
+ - ./ffsend upload ./upload/python3-reduced.tar.gz
51
+ - ./ffsend upload ./upload/python3-full.tar.gz
46
52
47
53
# Print all uploaded files URLs
48
54
- cd "$PROJECT_DIR"
You can’t perform that action at this time.
0 commit comments