Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull ruby build #906

Merged
merged 29 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
939d26d
Fix hashes for TruffleRuby 21.1.0
eregon May 26, 2021
19ed806
ruby-build 20210526
eregon May 26, 2021
7385765
Added JRuby 9.2.18.0
hsbt Jun 9, 2021
1063ef6
Merge pull request #1772 from rbenv/jruby-9-2-18-0
hsbt Jun 9, 2021
e7d3459
Add jruby-dev
deivid-rodriguez Jun 11, 2021
6b5c814
ruby-build 20210611
eregon Jun 11, 2021
1b477ae
Add JRuby 9.2.19.0
eregon Jun 15, 2021
a2200f3
Add Ruby 2.6.8, 2.7.4, 3.0.2
Sixeight Jul 7, 2021
f8e17bb
ruby-build 20210707
eregon Jul 7, 2021
44729b2
Handle multiple directories in PATH having an executable for remove_c…
eregon Jul 7, 2021
25e5281
Test Linux in GitHub Actions too
eregon Jan 19, 2021
964e83a
Run script/mirror verify on GitHub Actions too
eregon Jul 7, 2021
ebdcf0c
Only do script/mirror update on TravisCI
eregon Jul 7, 2021
45b3f7f
:fire: Travis CI
mislav Jul 15, 2021
7f368a7
Update ruby-build download mirror in GitHub Actions
mislav Jul 15, 2021
fa6cb85
Tweak `script/mirror`
mislav Jul 16, 2021
57a4f9c
Enable manual dispatch of `script/mirror update` in Actions
mislav Jul 16, 2021
8a3cfa5
Merge pull request #1780 from rbenv/actions-mirror
mislav Jul 19, 2021
5a43505
Add TruffleRuby 21.2.0
eregon Jul 20, 2021
d62e1d4
ruby-build 20210720
eregon Jul 20, 2021
37d7143
Rename the mirror workflow name for clarity
eregon Jul 20, 2021
ac72249
Ensure it is safe to remove the prefix path for TruffleRuby or error
eregon Jul 26, 2021
75c2fe4
ruby-build 20210726
eregon Jul 26, 2021
cf9a6fc
Use latest bump-homebrew-formula-action
mislav Jul 29, 2021
dc047ad
Fix mirror job in Actions
mislav Jul 31, 2021
075ad3b
Disable progress output when uploading to S3
mislav Jul 31, 2021
c94f955
TruffleRuby 21.2+ adds support for linux-aarch64
eregon Aug 1, 2021
887a13f
ruby-build 20210801
eregon Aug 1, 2021
62e3498
Merge ruby-build v20210801
jasonkarns Jun 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions bin/node-build
Original file line number Diff line number Diff line change
Expand Up @@ -732,19 +732,13 @@ build_package_autoconf() {
} >&4 2>&1
}

clean_prefix_path() {
# Make sure there are no leftover files in $PREFIX_PATH
rm -rf "$PREFIX_PATH"
}

build_package_copy_to() {
to="$1"
mkdir -p "$to"
cp -fR . "$to"
}

build_package_copy() {
clean_prefix_path
build_package_copy_to "$PREFIX_PATH"
}

Expand Down
14 changes: 8 additions & 6 deletions test/test_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ fi

remove_commands_from_path() {
local path cmd
local paths=( $(command -v "$@" | sed 's!/[^/]*$!!' | sort -u) )
local NEWPATH=":$PATH:"
for path in "${paths[@]}"; do
local tmp_path="$(mktemp -d "$BATS_TMPDIR/path.XXXXX")"
ln -fs "$path"/* "$tmp_path/"
for cmd; do rm -f "$tmp_path/$cmd"; done
NEWPATH="${NEWPATH/:$path:/:$tmp_path:}"
while PATH="${NEWPATH#:}" command -v "$@" >/dev/null; do
local paths=( $(PATH="${NEWPATH#:}" command -v "$@" | sed 's!/[^/]*$!!' | sort -u) )
for path in "${paths[@]}"; do
local tmp_path="$(mktemp -d "$TMP/path.XXXXX")"
ln -fs "$path"/* "$tmp_path/"
for cmd; do rm -f "$tmp_path/$cmd"; done
NEWPATH="${NEWPATH/:$path:/:$tmp_path:}"
done
done
echo "${NEWPATH#:}"
}
Expand Down