Skip to content

Commit

Permalink
feat: add lua tests to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
🎲 committed Jan 18, 2025
1 parent 0532bc3 commit 33a9d7d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cargo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,23 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4 # Checkout the repository using the specified action

- name: Set Up Lua
uses: leafo/gh-actions-lua@v10 # Set up Lua
with:
luaVersion: "5.1"

- name: Set Up Rust
uses: actions-rs/toolchain@v1 # Set up the Rust toolchain
with:
toolchain: stable # Use the stable Rust toolchain
override: true # Override any existing toolchain configuration

- name: Build
run: cargo build

- name: Test
run: lua.exe ltests/test.lua

- name: Install Cargo Release
run: cargo install cargo-release # Install the cargo-release tool

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ jobs:
toolchain: stable # Use the stable Rust toolchain
override: true # Override any existing toolchain configuration

- name: Build DLL
- name: Build
env:
LUA_LIB_NAME: lua
LUA_LIB: lua5.1/
LUA_INC: lua5.1/include
run: cargo build --release # Build the project in release mode

- name: Create GitHub Release
uses: ncipollo/release-action@v1 # Use the release action to create a GitHub Release
with:
artifacts: target/release/*.dll # Specify the artifacts to include in the release
artifacts: target/release/*.dll,dcs/json-rpc_*.lua # Specify the artifacts to include in the release
tag: ${{ github.ref_name }} # Use the tag created by `cargo release`
name: Release ${{ github.ref_name }} # Set the release name to the tag name
body: |
Expand Down

0 comments on commit 33a9d7d

Please sign in to comment.