Skip to content

Commit 88c9f4e

Browse files
committed
chore(workflow): add lua binding test workflow
Signed-off-by: owl <[email protected]>
1 parent b248c90 commit 88c9f4e

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.github/workflows/bindings_lua.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Bindings lua CI
19+
20+
on:
21+
push:
22+
branches:
23+
- main
24+
tags:
25+
- '*'
26+
pull_request:
27+
branches:
28+
- main
29+
paths:
30+
- "bindings/lua/**"
31+
- ".github/workflows/bindings_lua.yml"
32+
workflow_dispatch:
33+
34+
concurrency:
35+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
36+
cancel-in-progress: true
37+
38+
permissions:
39+
contents: read
40+
41+
jobs:
42+
test:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v3
46+
- name: Setup lua toolchain
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install -y lua-busted
50+
- name: Setup Rust toolchain
51+
uses: ./.github/actions/setup
52+
- name: Build & Test
53+
working-directory: "bindings/lua"
54+
run: |
55+
cargo build
56+
mv ../../target/debug/libopendal_lua.so opendal.so
57+
busted test/opendal_test.lua

bindings/lua/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ rust-version.workspace = true
3434
crate-type = ["cdylib"]
3535

3636
[dependencies]
37-
mlua = { version = "0.8", features = ["lua54", "vendored", "module"] }
37+
mlua = { version = "0.8", features = ["lua52", "vendored", "module"] }
3838
opendal.workspace = true

0 commit comments

Comments
 (0)