Skip to content

Rust

Rust #10

Workflow file for this run

name: Rust
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-2.0.5"
- name: Build
run: cargo build --verbose --release
env:
LUA_LIB: "./.lua/lib"
- uses: actions/upload-artifact@v4
with:
name: json5.dll
path: target/release/json5.dll
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo rustc --verbose --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup
env:
LUA_LIB: "./.lua/lib"
- uses: actions/upload-artifact@v4
with:
name: json5.dylib
path: target/release/libjson5.dylib