|
| 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 |
0 commit comments