Граф коммитов

759 Коммитов

Автор SHA1 Сообщение Дата
Takashi Kokubun efd611ceb6 Revert "[ruby/yarp] rust: Initial yarp-sys"
This reverts commit e6e23b92e3.

It seems like it wasn't added for ruby/ruby.

We could fix tool/sync_default_gems.rb to deal with this, but we have a
pull request that changes that part now, so let me only revert this for
now and revisit this after merging that pull request.
2023-08-15 13:54:46 -07:00
Steve Loveless e6e23b92e3 [ruby/yarp] rust: Initial yarp-sys
Still need to add more tests

Update Cargo.toml; add README

Switch yp_string_t_type variants to SNAKE_CASE

Add unescape tests

Add encoding callback tests

Add pack_parse test

Add diagnostic test

Add comment test

Add node tests

Add string_list tests

Add other string tests

Add shared string test

Add list tests

Fixes for updated branch

Run bundle install before running Rust tests

Fix version test

ci: Add proper config for rust-toolchain step for sanitizers

ci: Fix tests, clippy

Remove extra `bundle install`; run `bundle exec rake`

Didn't realize `setup-ruby`'s `bundle-cache: true` runs `bundle install`.

Remove `rake compile` from build.rs

This is complicating CI for me; maybe we add it back later.

Undo README formatting changes

Fix UB in C callbacks

Use slice+str instead of String for raw things

Move bindings to bindings module

Handle non-UTF-8 strings in paths

rust ci: test with sanitizers; add -D warnings

Update rust-bindings.yml

Update Cargo.toml

Don't need to compile extra crate_types

PR changes

Apply patch from @kddnewton

Delete unescape_tests.rs

Fix things after rebasing

https://github.com/ruby/yarp/commit/273790e40b
2023-08-15 20:52:06 +00:00
Nobuyoshi Nakada 6066f8d337
Fix a typo to suppress updating rbconfig.rb during `make up` 2023-08-15 23:30:41 +09:00
Nobuyoshi Nakada b76c2ec005
Use `::` form workflow commands 2023-08-15 23:30:40 +09:00
Nobuyoshi Nakada 46c428a926
Make test-spec on Windows silent a little 2023-08-12 11:19:10 +09:00
Takashi Kokubun 58424787fc Extend the CI timeout for macOS
https://github.com/ruby/ruby/actions/runs/5836610844/job/15830549311
2023-08-11 14:06:09 -07:00
Takashi Kokubun f25e7eac04 Fix the yjit-bindgen job
`YJIT_BINDGEN_DIFF_OPTS=--exit-code make yjit-bindgen` is not the same
as `make yjit-bindgen YJIT_BINDGEN_DIFF_OPTS=--exit-code`, of course.
2023-08-10 17:43:10 -07:00
Takashi Kokubun 1b0da1e623
Skip running brew upgrade (#8189)
This has been unstable:
https://github.com/ruby/ruby/actions/runs/5797755676/job/15713988590

and I'm not sure if we need that in the first place, assuming the
OS image itself is maintained by GitHub.
2023-08-08 16:46:12 -07:00
Nobuyoshi Nakada e4fcac42d2
Find paths of tools [ci skip]
Recent GitHub Actions Windows containers seem having Strawberry tools.
2023-08-02 13:48:43 +09:00
Takashi Kokubun 5ff1c00e17
YJIT: Let local yjit-bindgen exit successfully (#8156) 2023-08-01 14:46:14 -07:00
Nobuyoshi Nakada 49b76e57cc
Test `SHARABLE_MIDDLE_SUBSTRING` [ci skip] 2023-07-28 22:22:12 +09:00
Alan Wu 14691d39e9
Revert "GitHub Actions: fix ENOENT for jobs running in forks"
Revert b106cf2eef.
Sorry, it didn't actually fix the problem. See for example:
https://github.com/peterzhu2118/ruby/actions/runs/5659386206/job/15332833836

The plot thickens.
2023-07-25 18:46:00 -04:00
Alan Wu b106cf2eef
GitHub Actions: fix ENOENT for jobs running in forks
https://github.com/peterzhu2118/ruby/actions/runs/5649652235/job/15304434412

> Errno::ENOENT: No such file or directory @ rb_sysopen -
> ./.downloaded-cache/config.guess:
> https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess

Unsure about the root cause but making sure the directory is there seems like a
plausible fix. Maybe the issue is sensitive to cache state.
2023-07-24 19:23:08 -04:00
Takashi Kokubun 83605bb614 Just assume rustc is in the container 2023-07-21 10:50:19 -07:00
Nobuyoshi Nakada 22f9735587
Use already installed `rustc` if available [ci skip] 2023-07-21 18:38:29 +09:00
Kazuhiro NISHIYAMA ea2fc58d9a
Fix a typo [ci skip] 2023-07-19 19:29:41 +09:00
Peter Zhu 4e0b287912 Remove RGENGC_OLD_NEWOBJ_CHECK
The code doesn't compile, so probably nobody is using this.
2023-07-14 13:53:34 -04:00
Peter Zhu 87e1486d31 Remove unused references to the transient heap 2023-07-13 14:48:14 -04:00
Peter Zhu 1e7b67f733 [Feature #19730] Remove transient heap 2023-07-13 09:27:33 -04:00
Nobuyoshi Nakada e098468d7f
Let `[DOC]` in PR title skip CIs 2023-07-13 19:08:50 +09:00
Nobuyoshi Nakada f052aa11f2 macos: try --enable-shared 2023-07-08 11:31:17 +09:00
Nobuyoshi Nakada 46fe9ba0f5 macos: set configure options in the compsite action 2023-07-08 11:31:17 +09:00
Hiroshi SHIBATA a642a94b68
llvm-objcopy is not provided by Xcode Command Line Tools.
Revert "Disable YJIT if objcopy command is old"

  This reverts commit 75f8781c08.
2023-07-07 09:28:27 +09:00
Nobuyoshi Nakada 75f8781c08
Disable YJIT if objcopy command is old
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-07-06 21:16:00 +09:00
卜部昌平 20478cafe1 do not set environment variables
These variables were used only once.
2023-07-06 17:26:20 +09:00
Takashi Kokubun 1dde9d7260 Explain why YJIT is disabled for clang<=9 [ci skip] 2023-07-05 10:10:51 -07:00
Nobuyoshi Nakada 6a871baa3c
Note that YJIT requires FLONUM [ci skip] 2023-07-05 23:34:00 +09:00
卜部昌平 833b32f503 also disable yjit for clang < 10
They don't compile.  I guess nobody actively maintain such old
compilers.  Chances are the situation won't improve.  Let's stop
testing yjit on them.
2023-07-05 23:13:40 +09:00
卜部昌平 dd7c590f8a disable yjit when for non-flonum
YJIT does not interface with this flag.
2023-07-05 23:13:40 +09:00
卜部昌平 ab66155620 fix substitution errors
These expressions don't exist.
2023-07-04 20:13:49 +09:00
卜部昌平 7ee39556db fix typo
`matrix.name` doesn't exist.
2023-07-04 20:13:49 +09:00
卜部昌平 72e58bbdc0 fix typo
According to https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#check_suite
the key is "types", not "type".
2023-07-04 20:13:49 +09:00
卜部昌平 7690a31223 chore: add blank lines [ci skip]
A bit readable to me.
2023-07-04 20:13:49 +09:00
卜部昌平 f7732d63f4 Use `${{}}` for if statement [ci skip]
Looking at `git log` it seems multiple members of the team prefer
this style.  Let us follow the tradition.
2023-07-04 20:13:49 +09:00
卜部昌平 b0977e402a chore: just add spaces [ci skip]
As seen in:
https://docs.github.com/en/actions/learn-github-actions/expressions
2023-07-04 20:13:49 +09:00
卜部昌平 8ba5437fe5 annocheck: de-matrix
This workflow have never needed matrix since its birth.
2023-07-04 20:13:49 +09:00
卜部昌平 d1efc7a3f0 chore: prettier [ci skip]
This is just `prettier --single-quote`.  Single quote is because
it generated smaller diff than vice verca.
2023-07-04 20:13:49 +09:00
卜部昌平 420d069cc2 refactor extract mkdir
Everyone does `mkdir build; src/autogen.sh`; why not merge them.
2023-07-04 20:13:49 +09:00
Nobuyoshi Nakada 0d0841ad4c
Compile code for lazy ISeq loding always 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada 469e644c93
Compile code for non-embedded CI always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada 5204ad56e1
Compile debugging code for stress to class always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada 7a0a218dff
Compile debugging code for integer pack always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada d8d7591e6f
Stop `DEBUG_FIND_TIME_NUMGUESS` compilation
Debugging code for find_time_numguess is compiled always.
2023-06-30 23:59:03 +09:00
卜部昌平 37a893d129 bit quiet 2023-06-30 17:39:39 +09:00
卜部昌平 7102324de3 fix YAML error
`outputs` has to be a hash, but it seems previous expression
generated a null token and would have generated errors here.
2023-06-30 17:39:39 +09:00
卜部昌平 c90b8493fb refactor delete unnecessary branches
These conditions always hold.
2023-06-30 17:39:39 +09:00
卜部昌平 34bf2d5085 refactor extract brew
Use composite action to reduce copy & paste.
2023-06-30 17:39:39 +09:00
卜部昌平 e8d629ed76 refactor extract apt-get
Use composite action to reduce copy & paste.
2023-06-30 11:18:06 +09:00
卜部昌平 4aa73f8f8a proper path
Source code is not always checked out to `.`.  We need to specify
the exact place where the action.yml file is located.
2023-06-29 16:58:11 +09:00
卜部昌平 48e646fd96 refactor extract ${{ ghithub }} expressions
Use composite action to reduce copy & paste.
2023-06-29 16:58:11 +09:00