mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
Compare commits
2 Commits
83cff80c91
...
f19d1605b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f19d1605b4 | ||
|
|
4b7addb28a |
12
.github/workflows/build-release.yml
vendored
12
.github/workflows/build-release.yml
vendored
@@ -36,6 +36,11 @@ jobs:
|
|||||||
container: debian:13
|
container: debian:13
|
||||||
target: freebsd
|
target: freebsd
|
||||||
artifact: skynet-freebsd.zip
|
artifact: skynet-freebsd.zip
|
||||||
|
- platform: openbsd
|
||||||
|
os: ubuntu-latest
|
||||||
|
container: debian:13
|
||||||
|
target: openbsd
|
||||||
|
artifact: skynet-openbsd.zip
|
||||||
|
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
@@ -70,10 +75,9 @@ jobs:
|
|||||||
# Install any additional dependencies if needed
|
# Install any additional dependencies if needed
|
||||||
brew install autoconf automake libtool || true
|
brew install autoconf automake libtool || true
|
||||||
|
|
||||||
- name: Install dependencies (FreeBSD)
|
- name: Install dependencies (FreeBSD/OpenBSD)
|
||||||
if: matrix.platform == 'freebsd'
|
if: matrix.platform == 'freebsd' || matrix.platform == 'openbsd'
|
||||||
run: |
|
run: |
|
||||||
# FreeBSD build using standard build tools (cross-compilation compatible)
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
@@ -148,7 +152,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p release-assets
|
mkdir -p release-assets
|
||||||
# Copy zip files from artifact directories to release assets
|
# Copy zip files from artifact directories to release assets
|
||||||
for artifact in skynet-windows.zip skynet-linux.zip skynet-macosx.zip skynet-freebsd.zip; do
|
for artifact in skynet-windows.zip skynet-linux.zip skynet-macosx.zip skynet-freebsd.zip skynet-openbsd.zip; do
|
||||||
if [ -d "artifacts/${artifact}" ]; then
|
if [ -d "artifacts/${artifact}" ]; then
|
||||||
# The artifacts are already organized, just copy them
|
# The artifacts are already organized, just copy them
|
||||||
cp -r "artifacts/${artifact}/"* "release-assets/" 2>/dev/null || true
|
cp -r "artifacts/${artifact}/"* "release-assets/" 2>/dev/null || true
|
||||||
|
|||||||
3
3rd/compat-mingw/sys/select.h
Normal file
3
3rd/compat-mingw/sys/select.h
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <sys/socket.h>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
package.cpath = "luaclib/?.so"
|
package.cpath = "luaclib/?.so"
|
||||||
package.path = "lualib/?.lua;examples/?.lua"
|
package.path = "lualib/?.lua;examples/?.lua"
|
||||||
|
|
||||||
if _VERSION ~= "Lua 5.4" then
|
if _VERSION ~= "Lua 5.5" then
|
||||||
error "Use lua 5.4"
|
error "Use lua 5.5"
|
||||||
end
|
end
|
||||||
|
|
||||||
local socket = require "client.socket"
|
local socket = require "client.socket"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package.cpath = "luaclib/?.so"
|
|||||||
local socket = require "client.socket"
|
local socket = require "client.socket"
|
||||||
local crypt = require "client.crypt"
|
local crypt = require "client.crypt"
|
||||||
|
|
||||||
if _VERSION ~= "Lua 5.4" then
|
if _VERSION ~= "Lua 5.5" then
|
||||||
error "Use lua 5.4"
|
error "Use lua 5.5"
|
||||||
end
|
end
|
||||||
|
|
||||||
local fd = assert(socket.connect("127.0.0.1", 8001))
|
local fd = assert(socket.connect("127.0.0.1", 8001))
|
||||||
|
|||||||
Reference in New Issue
Block a user