Skip to content

Commit

Permalink
Update gitignore to include Discord RPC binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makosai committed Aug 19, 2024
1 parent 13df883 commit fcb18b7
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 6 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
- zig/**

env:
VERSION: 0.13.0
ZIG_VERSION: 0.13.0

jobs:
zig_test:
godot_zig:
container:
image: barichello/godot-ci:4.3
strategy:
Expand All @@ -21,12 +21,25 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{env.VERSION}}
lfs: true
- name: Install Zig
run: |
apt-get update
apt-get upgrade -y
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}}
export PATH=$PATH:~/sdk/zig
echo "export PATH=$PATH:~/sdk/zig" >> ~/.bashrc
- name: Generate Godot Project
run: godot -e --path ../godot --import --headless
working-directory: ./zig
- name: Generate Zig Bindings
working-directory: ./zig
run: zig build bind
- name: Test
working-directory: ./zig
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,8 @@ $RECYCLE.BIN/
*.msp
*.lnk
*.generated.props

!/godot/addons/**/bin
!/godot/addons/**/bin/**/*.so
!/godot/addons/**/bin/**/*.dylib
!/godot/addons/**/bin/**/*.dll
29 changes: 29 additions & 0 deletions godot/addons/discord-rpc-gd/bin/discord-rpc-gd.gdextension
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[configuration]

entry_symbol = "discordrpcgd_library_init"
compatibility_minimum = 4.1

[libraries]

macos.debug = "macos/libdiscord_game_sdk_binding_debug.dylib"
macos.release = "macos/libdiscord_game_sdk_binding.dylib"
windows.debug.x86_64 = "windows/discord_game_sdk_binding_debug.dll"
windows.release.x86_64 = "windows/discord_game_sdk_binding.dll"
linux.debug.x86_64 = "linux/libdiscord_game_sdk_binding_debug.so"
linux.release.x86_64 = "linux/libdiscord_game_sdk_binding.so"
linux.debug.arm64 = "linux/libdiscord_game_sdk_binding_debug.so"
linux.release.arm64 = "linux/libdiscord_game_sdk_binding.so"
linux.debug.rv64 = "linux/libdiscord_game_sdk_binding_debug.so"
linux.release.rv64 = "linux/libdiscord_game_sdk_binding.so"

[dependencies]

macos = { "macos/libdiscord_game_sdk.dylib": "" }
windows.debug.x86_64 = { "windows/discord_game_sdk.dll": "" }
windows.release.x86_64 = { "windows/discord_game_sdk.dll": "" }
linux.debug.x86_64 = { "linux/libdiscord_game_sdk.so": "" }
linux.release.x86_64 = { "linux/libdiscord_game_sdk.so": "" }
linux.debug.arm64 = { "linux/libdiscord_game_sdk.so": "" }
linux.release.arm64 = { "linux/libdiscord_game_sdk.so": "" }
linux.debug.rv64 = { "linux/libdiscord_game_sdk.so": "" }
linux.release.rv64 = { "linux/libdiscord_game_sdk.so": "" }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Godot = @import("godot");
const builtin = @import("builtin");
const GPA = std.heap.GeneralPurposeAllocator(.{});

// 2
// 3

var gpa = GPA{};

Expand Down

0 comments on commit fcb18b7

Please sign in to comment.