mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 19:03:17 +00:00
Enable CI
This commit is contained in:
parent
5212fd4794
commit
92af746a73
17
.github/workflows/build.yaml
vendored
Normal file
17
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: "Build"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version:
|
||||||
|
- lsyncd_lua5_3
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- uses: cachix/install-nix-action@v15
|
||||||
|
- run: |
|
||||||
|
chmod og-rw ~
|
||||||
|
nix develop .#${{ matrix.version }} --command ./tests/ci-run.sh
|
@ -27,6 +27,10 @@ sync {
|
|||||||
ssh = {
|
ssh = {
|
||||||
port= 2468,
|
port= 2468,
|
||||||
identityFile = "]] .. script_path() .. [[/ssh/id_rsa",
|
identityFile = "]] .. script_path() .. [[/ssh/id_rsa",
|
||||||
|
options = {
|
||||||
|
StrictHostKeyChecking="no",
|
||||||
|
UserKnownHostsFile="/dev/null",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
source = ']]..srcdir..[[',
|
source = ']]..srcdir..[[',
|
||||||
targetdir = ']]..trgdir..[[',
|
targetdir = ']]..trgdir..[[',
|
||||||
|
@ -137,7 +137,7 @@ function startSshd()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local f = io.open( sshdPath .. "sshd_config", 'w')
|
local f = io.open( sshdPath .. "sshd_config", 'w')
|
||||||
f:write([[
|
local cfg = [[
|
||||||
Port 2468
|
Port 2468
|
||||||
HostKey ]] .. sshdPath .. [[ssh_host_rsa_key
|
HostKey ]] .. sshdPath .. [[ssh_host_rsa_key
|
||||||
AuthorizedKeysFile ]] .. sshdPath .. [[authorized_keys
|
AuthorizedKeysFile ]] .. sshdPath .. [[authorized_keys
|
||||||
@ -145,13 +145,15 @@ function startSshd()
|
|||||||
UsePAM no
|
UsePAM no
|
||||||
#Subsystem sftp /usr/lib/ssh/sftp-server
|
#Subsystem sftp /usr/lib/ssh/sftp-server
|
||||||
PidFile ]] .. sshdPath .. [[sshd.pid
|
PidFile ]] .. sshdPath .. [[sshd.pid
|
||||||
]])
|
]]
|
||||||
f:close( )
|
cwriteln("Use ssh config: "..cfg)
|
||||||
|
f:write(cfg)
|
||||||
|
f:close()
|
||||||
--local which = io.popen("which sshd")
|
--local which = io.popen("which sshd")
|
||||||
exePath = which('sshd')
|
exePath = which('sshd')
|
||||||
cwriteln("Using sshd: "..exePath)
|
cwriteln("Using sshd: "..exePath)
|
||||||
|
|
||||||
local pid = spawn(exePath, "-f", sshdPath .. "sshd_config")
|
local pid = spawn(exePath, "-D", "-e", "-f", sshdPath .. "sshd_config")
|
||||||
cwriteln( 'spawned sshd server: ' .. pid)
|
cwriteln( 'spawned sshd server: ' .. pid)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user