Skip to content

Commit 348b1ab

Browse files
committed
update build.zig
1 parent 7c78558 commit 348b1ab

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
run: |
5454
mkdir -p release
5555
if [[ "${{ matrix.target }}" == *"windows"* ]]; then
56-
cp zig-out/lib/loaders_zig.lib release/loaders_zig-${{ matrix.target }}.lib || true
56+
cp zig-out/lib/loaders.lib release/loaders-${{ matrix.target }}.lib || true
5757
else
58-
cp zig-out/lib/libloaders_zig.a release/libloaders_zig-${{ matrix.target }}.a || true
58+
cp zig-out/lib/libloaders.a release/libloaders-${{ matrix.target }}.a || true
5959
fi
6060
6161
- name: Upload Release Artifacts
@@ -133,17 +133,17 @@ jobs:
133133
134134
| Platform | Architecture | File |
135135
|----------|--------------|------|
136-
| Windows | x86_64 | [loaders_zig-x86_64-windows.lib](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/loaders_zig-x86_64-windows.lib) |
137-
| Windows | x86 | [loaders_zig-x86-windows.lib](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/loaders_zig-x86-windows.lib) |
138-
| Linux | x86_64 | [libloaders_zig-x86_64-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-x86_64-linux.a) |
139-
| Linux | x86 | [libloaders_zig-x86-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-x86-linux.a) |
140-
| Linux | aarch64 (ARM64) | [libloaders_zig-aarch64-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-aarch64-linux.a) |
141-
| macOS | x86_64 (Intel) | [libloaders_zig-x86_64-macos.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-x86_64-macos.a) |
142-
| macOS | aarch64 (Apple Silicon) | [libloaders_zig-aarch64-macos.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-aarch64-macos.a) |
143-
| Bare Metal | x86_64 | [libloaders_zig-x86_64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-x86_64-freestanding.a) |
144-
| Bare Metal | aarch64 | [libloaders_zig-aarch64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-aarch64-freestanding.a) |
145-
| Bare Metal | RISC-V 64 | [libloaders_zig-riscv64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-riscv64-freestanding.a) |
146-
| Bare Metal | ARM | [libloaders_zig-arm-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders_zig-arm-freestanding.a) |
136+
| Windows | x86_64 | [loaders-x86_64-windows.lib](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/loaders-x86_64-windows.lib) |
137+
| Windows | x86 | [loaders-x86-windows.lib](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/loaders-x86-windows.lib) |
138+
| Linux | x86_64 | [libloaders-x86_64-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-x86_64-linux.a) |
139+
| Linux | x86 | [libloaders-x86-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-x86-linux.a) |
140+
| Linux | aarch64 (ARM64) | [libloaders-aarch64-linux.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-aarch64-linux.a) |
141+
| macOS | x86_64 (Intel) | [libloaders-x86_64-macos.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-x86_64-macos.a) |
142+
| macOS | aarch64 (Apple Silicon) | [libloaders-aarch64-macos.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-aarch64-macos.a) |
143+
| Bare Metal | x86_64 | [libloaders-x86_64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-x86_64-freestanding.a) |
144+
| Bare Metal | aarch64 | [libloaders-aarch64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-aarch64-freestanding.a) |
145+
| Bare Metal | RISC-V 64 | [libloaders-riscv64-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-riscv64-freestanding.a) |
146+
| Bare Metal | ARM | [libloaders-arm-freestanding.a](https://github.com/muhammad-fiaz/loaders.zig/releases/download/${{ github.event.release.tag_name }}/libloaders-arm-freestanding.a) |
147147
148148
### 🛠️ Using Prebuilt Libraries
149149
@@ -154,5 +154,5 @@ jobs:
154154
```zig
155155
// Assuming you placed the library in `libs/`
156156
exe.addLibraryPath(b.path("libs"));
157-
exe.linkSystemLibrary("loaders_zig");
157+
exe.linkSystemLibrary("loaders");
158158
```

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn build(b: *std.Build) void {
9191

9292
// Library
9393
const lib = b.addLibrary(.{
94-
.name = "loaders_zig",
94+
.name = "loaders",
9595
.linkage = .static,
9696
.root_module = b.createModule(.{
9797
.root_source_file = b.path("src/loaders.zig"),

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.{
2-
.name = .loaders_zig,
2+
.name = .loaders,
33
.version = "0.0.1",
44
.fingerprint = 0x82eb52b8a1d9164c,
55
.minimum_zig_version = "0.16.0",

0 commit comments

Comments
 (0)