kopia lustrzana https://github.com/cirospaciari/socketify.py
Merge branch 'workflows-test' of https://github.com/cirospaciari/socketify.py into workflows-test
commit
3e62e6514d
|
@ -0,0 +1,38 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
jobs:
|
||||||
|
build-macos:
|
||||||
|
runs-on: macos-11.0
|
||||||
|
name: Build on darwin-amd64
|
||||||
|
steps:
|
||||||
|
- name: Update binaries
|
||||||
|
run: |
|
||||||
|
git clone -b workflows-test --recursive https://github.com/cirospaciari/socketify.py.git
|
||||||
|
cd socketify.py/src/socketify/native
|
||||||
|
make macos
|
||||||
|
cd ../
|
||||||
|
git add libsocketify_darwin_amd64.so
|
||||||
|
git add libsocketify_darwin_arm64.so
|
||||||
|
git config --global user.email "ciro.spaciari@gmail.com"
|
||||||
|
git config --global user.name "Ciro Spaciari"
|
||||||
|
git commit -a -m "[GitHub Actions] Updated darwin-amd64 binaries" || true
|
||||||
|
git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git" workflows-test
|
||||||
|
build-linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build on linux-amd64
|
||||||
|
steps:
|
||||||
|
- name: Update binaries
|
||||||
|
run: |
|
||||||
|
sudo apt update || true
|
||||||
|
sudo apt install -y libuv1-dev
|
||||||
|
sudo apt install -y g++-aarch64-linux-gnu || true
|
||||||
|
git clone -b workflows-test --recursive https://github.com/cirospaciari/socketify.py.git
|
||||||
|
cd socketify.py/src/socketify/native
|
||||||
|
make linux
|
||||||
|
cd ../
|
||||||
|
git add libsocketify_linux_amd64.so
|
||||||
|
git config --global user.email "ciro.spaciari@gmail.com"
|
||||||
|
git config --global user.name "Ciro Spaciari"
|
||||||
|
git commit -a -m "[GitHub Actions] Updated linux-amd64 binaries" || true
|
||||||
|
git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git" workflows-test
|
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -23,4 +23,4 @@ cd ../../native
|
||||||
|
|
||||||
@REM # build CAPI + libsocketify
|
@REM # build CAPI + libsocketify
|
||||||
clang++ -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -D WIN32_LEAN_AND_MEAN -I C:/vcpkg/packages/zlib_x64-windows/include -I C:/vcpkg/packages/libuv_x64-windows/include -I ./src -I ../uWebSockets/src -I ../uWebSockets/uSockets/src -I ../uWebSockets/capi -I ../uWebSockets/uSockets/lsquic/wincompat -I ../uWebSockets/uSockets/lsquic/include -I ../uWebSockets/uSockets/boringssl/include -pthread -std=c++2a -c -O3 ./src/libsocketify.cpp -L C:/vcpkg/packages/libuv_x64-windows/lib
|
clang++ -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -D WIN32_LEAN_AND_MEAN -I C:/vcpkg/packages/zlib_x64-windows/include -I C:/vcpkg/packages/libuv_x64-windows/include -I ./src -I ../uWebSockets/src -I ../uWebSockets/uSockets/src -I ../uWebSockets/capi -I ../uWebSockets/uSockets/lsquic/wincompat -I ../uWebSockets/uSockets/lsquic/include -I ../uWebSockets/uSockets/boringssl/include -pthread -std=c++2a -c -O3 ./src/libsocketify.cpp -L C:/vcpkg/packages/libuv_x64-windows/lib
|
||||||
clang++ -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -shared -o ../libsocketify_windows_amd64.so libsocketify.o ../uWebSockets/uSockets/uSockets_windows_amd64.a ../uWebSockets/uSockets/boringssl/amd64/ssl/ssl.lib ../uWebSockets/uSockets/boringssl/amd64/crypto/crypto.lib C:/vcpkg/packages/zlib_x64-windows/lib/zlib.lib ../uWebSockets/uSockets/lsquic/src/liblsquic/Debug/lsquic.lib -luv -L C:/vcpkg/packages/libuv_x64-windows/lib
|
clang++ -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -shared -o ../libsocketify_windows_amd64.dll libsocketify.o ../uWebSockets/uSockets/uSockets_windows_amd64.a ../uWebSockets/uSockets/boringssl/amd64/ssl/ssl.lib ../uWebSockets/uSockets/boringssl/amd64/crypto/crypto.lib C:/vcpkg/packages/zlib_x64-windows/lib/zlib.lib ../uWebSockets/uSockets/lsquic/src/liblsquic/Debug/lsquic.lib -luv -L C:/vcpkg/packages/libuv_x64-windows/lib
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Ładowanie…
Reference in New Issue