kopia lustrzana https://github.com/cirospaciari/socketify.py
change default macos_arm64 to static libuv cross compile with cmake
rodzic
2db76fa280
commit
401effd9dd
|
@ -7,9 +7,15 @@ jobs:
|
|||
steps:
|
||||
- name: Update binaries
|
||||
run: |
|
||||
brew install autoconf automake libtool cmake
|
||||
git clone --branch v1.44.2 --recursive https://github.com/libuv/libuv.git
|
||||
cd libuv
|
||||
cmake . -DCMAKE_OSX_ARCHITECTURES=arm64
|
||||
cmake --build .
|
||||
cd ../
|
||||
git clone --recursive https://github.com/cirospaciari/socketify.py.git
|
||||
cd socketify.py/src/socketify/native
|
||||
make macos-arm64
|
||||
make macos-arm64-libuv-static-cmake
|
||||
cd ../
|
||||
git add libsocketify_darwin_arm64.so
|
||||
git config --global user.email "ciro.spaciari@gmail.com"
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
name: Apple Silicon + libuv Build
|
||||
on: workflow_dispatch
|
||||
jobs:
|
||||
build-macos:
|
||||
runs-on: macos-11.0
|
||||
name: Build on darwin-arm64
|
||||
steps:
|
||||
- name: Update binaries
|
||||
run: |
|
||||
brew install autoconf automake libtool cmake
|
||||
git clone --branch v1.44.2 --recursive https://github.com/libuv/libuv.git
|
||||
cd libuv
|
||||
cmake . -DCMAKE_OSX_ARCHITECTURES=arm64
|
||||
cmake --build .
|
||||
cd ../
|
||||
git clone --recursive https://github.com/cirospaciari/socketify.py.git
|
||||
cd socketify.py/src/socketify/native
|
||||
make macos-arm64-libuv-static-cmake
|
||||
cd ../
|
||||
git add libsocketify_darwin_arm64.so
|
||||
git config --global user.email "ciro.spaciari@gmail.com"
|
||||
git config --global user.name "Ciro Spaciari"
|
||||
git commit -m "[GitHub Actions] Updated darwin-arm64 binaries" || true
|
||||
git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git"
|
|
@ -1,25 +0,0 @@
|
|||
name: Apple Silicon + libuv Build
|
||||
on: workflow_dispatch
|
||||
jobs:
|
||||
build-macos:
|
||||
runs-on: macos-11.0
|
||||
name: Build on darwin-arm64
|
||||
steps:
|
||||
- name: Update binaries
|
||||
run: |
|
||||
brew install autoconf automake libtool
|
||||
git clone --branch v1.44.2 --recursive https://github.com/libuv/libuv.git
|
||||
cd libuv
|
||||
sh autogen.sh
|
||||
./configure --build=x86_64-apple-darwin --host=arm64-apple-macos11 --target=arm64-apple-macos11
|
||||
make
|
||||
cd ../
|
||||
git clone --recursive https://github.com/cirospaciari/socketify.py.git
|
||||
cd socketify.py/src/socketify/native
|
||||
make macos-arm64-libuv-static
|
||||
cd ../
|
||||
git add libsocketify_darwin_arm64.so
|
||||
git config --global user.email "ciro.spaciari@gmail.com"
|
||||
git config --global user.name "Ciro Spaciari"
|
||||
git commit -m "[GitHub Actions] Updated darwin-arm64 binaries" || true
|
||||
git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git"
|
Ładowanie…
Reference in New Issue