Skip to content

Commit

Permalink
Use GitHub workflow setting for dependency definition
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Nov 21, 2024
1 parent 67a67a5 commit 7b90773
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bindings/ruby/extsources.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
EXTSOURCES = `git ls-files -z ../..`.split("\x0").grep(%r{\A\.\./\.\./(?:src|include|ggml).+\.(c|cpp|h|m|metal)\z}) <<
"../../examples/dr_wav.h" <<
"../../scripts/get-flags.mk" <<
"../../LICENSE"
require "yaml"

sources = `git ls-files -z ../..`.split("\x0")
paths = YAML.load_file("../../.github/workflows/bindings-ruby.yml")[true]["push"]["paths"]
paths.delete "bindings/ruby/**"
EXTSOURCES = (Dir.glob(paths, base: "../..").collect {|path| "../../#{path}"} << "../../LICENSE") & sources

0 comments on commit 7b90773

Please sign in to comment.