You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/02/20 01:50:50 UTC
[skywalking-nginx-lua] branch master updated: Try to set up lua
runtime.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-nginx-lua.git
The following commit(s) were added to refs/heads/master by this push:
new 4b4f81a Try to set up lua runtime.
4b4f81a is described below
commit 4b4f81ab79f95fc942489eff43616a5c7e47dbf7
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Feb 20 09:50:37 2020 +0800
Try to set up lua runtime.
---
.github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++
ci/lua-setup.sh | 25 ++++++++++++++++++
lib/{sw_agent.lua => skywalking/agent.lua} | 3 ++-
lib/{sw_agent.lua => skywalking/buffer.lua} | 3 ++-
4 files changed, 70 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..6d94190
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: CI AND IT
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ tags:
+ - 'v*'
+
+
+jobs:
+ CI:
+ runs-on: ubuntu-18.04
+ timeout-minutes: 180
+ strategy:
+ fail-fast: true
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - name: 'Install LUA runtime'
+ run: |
+ sh lua-setup.sh
+ lua -v
\ No newline at end of file
diff --git a/ci/lua-setup.sh b/ci/lua-setup.sh
new file mode 100644
index 0000000..7d5b401
--- /dev/null
+++ b/ci/lua-setup.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
+tar zxf lua-5.3.5.tar.gz
+cd lua-5.3.5
+make linux test
+cd src
+LUA_PATH=`pwd`
+export PATH=$PATH:$LUA_PATH
+echo $PATH
\ No newline at end of file
diff --git a/lib/sw_agent.lua b/lib/skywalking/agent.lua
similarity index 99%
copy from lib/sw_agent.lua
copy to lib/skywalking/agent.lua
index 1a7d08a..6245b76 100644
--- a/lib/sw_agent.lua
+++ b/lib/skywalking/agent.lua
@@ -13,4 +13,5 @@
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
---
\ No newline at end of file
+--
+
diff --git a/lib/sw_agent.lua b/lib/skywalking/buffer.lua
similarity index 99%
rename from lib/sw_agent.lua
rename to lib/skywalking/buffer.lua
index 1a7d08a..6245b76 100644
--- a/lib/sw_agent.lua
+++ b/lib/skywalking/buffer.lua
@@ -13,4 +13,5 @@
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
---
\ No newline at end of file
+--
+