Initial commit
This commit is contained in:
22
.github/workflows/Build.yml
vendored
git.filemode.normal_file
22
.github/workflows/Build.yml
vendored
git.filemode.normal_file
@@ -0,0 +1,22 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.15.1
|
||||
|
||||
- name: Building
|
||||
run: zig build
|
||||
|
||||
- name: Test
|
||||
run: zig build test
|
||||
29
build.zig
git.filemode.normal_file
29
build.zig
git.filemode.normal_file
@@ -0,0 +1,29 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const lib_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/lib.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const lib = b.addLibrary(.{
|
||||
.name = "vulkan",
|
||||
.root_module = lib_mod,
|
||||
.linkage = .dynamic,
|
||||
});
|
||||
|
||||
b.installArtifact(lib);
|
||||
|
||||
const lib_tests = b.addTest(.{
|
||||
.root_module = lib_mod,
|
||||
});
|
||||
|
||||
const run_lib_tests = b.addRunArtifact(lib_tests);
|
||||
|
||||
const test_step = b.step("test", "Run tests");
|
||||
test_step.dependOn(&run_lib_tests.step);
|
||||
}
|
||||
15
build.zig.zon
git.filemode.normal_file
15
build.zig.zon
git.filemode.normal_file
@@ -0,0 +1,15 @@
|
||||
.{
|
||||
.name = .VulkanDriver,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x52cb73649f1107de,
|
||||
.minimum_zig_version = "0.15.1",
|
||||
|
||||
.dependencies = .{},
|
||||
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
"build.zig.zon",
|
||||
"src",
|
||||
"LICENSE",
|
||||
},
|
||||
}
|
||||
1
src/lib.zig
git.filemode.normal_file
1
src/lib.zig
git.filemode.normal_file
@@ -0,0 +1 @@
|
||||
const std = @import("std");
|
||||
Reference in New Issue
Block a user