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 bfce7da commit 7c0e15b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ jobs:
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
tar -xf /home/downloads/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -C ~/sdk/zig
cp -r ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}}/* ~/sdk/zig
rm -rf ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}}
sudo mkdir -p ~/sdk/zig
sudo mkdir -p /home/downloads
sudo 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
sudo tar -xf /home/downloads/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -C ~/sdk/zig
sudo cp -r ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}}/* ~/sdk/zig
sudo rm -rf ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}}
- name: Add Zig to PATH
run: echo ${{env.ZIG_PATH}} >> $GITHUB_PATH
- name: Install Godot
if: steps.cache-godot.outputs.cache-hit != 'true'
run: |
mkdir -p ~/sdk/godot
mkdir -p /home/downloads
wget https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip -O /home/downloads/Godot_v4.3-stable_linux.x86_64.zip
unzip /home/downloads/Godot_v4.3-stable_linux.x86_64.zip -d ~/sdk/godot
mv ~/sdk/godot/Godot_v4.3-stable_linux.x86_64 ~/sdk/godot/godot
sudo mkdir -p ~/sdk/godot
sudo mkdir -p /home/downloads
sudo wget https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip -O /home/downloads/Godot_v4.3-stable_linux.x86_64.zip
sudo unzip /home/downloads/Godot_v4.3-stable_linux.x86_64.zip -d ~/sdk/godot
sudo mv ~/sdk/godot/Godot_v4.3-stable_linux.x86_64 ~/sdk/godot/godot
- name: Add Godot to PATH
run: echo ${{env.GODOT_PATH}} >> $GITHUB_PATH
- name: Generate Godot Project
Expand Down
2 changes: 0 additions & 2 deletions zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ 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 7c0e15b

Please sign in to comment.