Skip to content

Rust

Rust #7

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
- 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.dylib
path: target/release/json5.dylib