Skip to content

Commit

Permalink
fix(ci): use allyourcodebase/lua, revert -Dinstall-lua
Browse files Browse the repository at this point in the history
  • Loading branch information
robbielyman committed Dec 28, 2024
1 parent e6daf7f commit ef2677c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
- uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- run: zig build -Dinstall-lua=true
- uses: actions/checkout@v4
with:
repository: allyourcodebase/lua
path: .lua
- run: cd .lua && zig build
- uses: leafo/gh-actions-luarocks@v4.3.0
with:
withLuaPath: ${{ github.workspace }}/zig-out/lib/
withLuaPath: ${{ github.workspace }}/.lua/zig-out/
- run: luarocks install busted
- run: zig build test
check-fmt:
Expand Down
10 changes: 0 additions & 10 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ const std = @import("std");
pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const install_lua = b.option(bool, "install-lua", "compile and install Lua as a shared library") orelse false;

if (install_lua) {
const lua = b.dependency("ziglua", .{
.target = target,
.optimize = optimize,
.shared = true,
});
b.installArtifact(lua.artifact("lua"));
}

const lib = b.addSharedLibrary(.{
.name = "seamstress",
Expand Down

0 comments on commit ef2677c

Please sign in to comment.