Skip to content

Commit

Permalink
Update Zig Workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makosai committed Aug 19, 2024
1 parent e7cfbeb commit ff12d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
- name: Install Zig
if: steps.cache-zig.outputs.cache-hit != 'true'
run: |
apt-get update
apt-get upgrade -y
apt-get install xz-utils -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install xz-utils -y
mkdir -p ~/sdk/zig
mkdir -p /home/downloads
wget https://ziglang.org/download/${{env.ZIG_VERSION}}/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -O /home/downloads/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz
Expand Down
2 changes: 2 additions & 0 deletions zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const Godot = @import("godot");
const builtin = @import("builtin");
const GPA = std.heap.GeneralPurposeAllocator(.{});

// 4

var gpa = GPA{};

pub export fn my_extension_init(p_get_proc_address: Godot.GDExtensionInterfaceGetProcAddress, p_library: Godot.GDExtensionClassLibraryPtr, r_initialization: [*c]Godot.GDExtensionInitialization) Godot.GDExtensionBool {
Expand Down

0 comments on commit ff12d06

Please sign in to comment.