-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Use the latest available Red Arrow (#71)
fix #70
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- ruby -*- | ||
# | ||
# Copyright 2022-2023 Sutou Kouhei <[email protected]> | ||
# Copyright 2022-2024 Sutou Kouhei <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -16,7 +16,24 @@ | |
|
||
source "https://rubygems.org/" | ||
|
||
# Use the version of red-arrow based on the available arrow-glib version | ||
red_arrow_version = ">= 0" | ||
IO.pipe do |input, output| | ||
begin | ||
pid = spawn("pkg-config", "--modversion", "arrow-glib", | ||
out: output, | ||
err: File::NULL) | ||
output.close | ||
_, status = Process.waitpid2(pid) | ||
if status.success? | ||
arrow_glib_version = input.read.strip.sub(/-SNAPSHOT\z/, "").strip | ||
red_arrow_version = "<= #{arrow_glib_version}" | ||
end | ||
rescue SystemCallError | ||
end | ||
end | ||
|
||
gem "rake" | ||
gem "red-arrow" | ||
gem "red-parquet" | ||
gem "red-arrow", red_arrow_version | ||
gem "red-parquet", red_arrow_version | ||
gem "test-unit" |