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

485 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 91c05b34cd Bundled gems test needs `prepare-gems`
`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
2022-07-25 08:50:07 +09:00
Peter Zhu 3ff53c8e04 Remove macOS 10.15 from CI
macOS 10.15 is deprecated on GitHub Actions and will have periodic
brownouts. See actions/virtual-environments#5583.
2022-07-21 11:49:24 -04:00
Nobuyoshi Nakada e330dceb3f
Mark ruby scripts in YAML [ci skip]
```elisp
(mmm-ify-by-regexp 'ruby-mode
  "^ *#!.*ruby" 0 "^ *shell: *ruby.*{0}" 0 0)
```
2022-07-20 09:40:59 +09:00
Nobuyoshi Nakada 8794cc6289
Tentatively put macOS CIs back with adding macOS 12 2022-07-07 15:06:10 +09:00
Yuta Saito 76619bbb11 [wasm] get rid of workaround use of older binaryen and update to latest
We no longer need to use older version of binaryen since the blocker
issue has been resolved https://github.com/WebAssembly/binaryen/issues/4401
2022-07-06 11:59:38 +09:00
Nobuyoshi Nakada 3a9ff9457a
CI: skip the failing test only 2022-07-05 11:35:14 +09:00
Nobuyoshi Nakada b5f871888e
CI: skip objspace test on MinGW for now 2022-07-05 11:33:47 +09:00
Nobuyoshi Nakada 06a241ad28
Disable USE_DEBUG_COUNTER test for now [ci skip] 2022-07-03 00:07:06 +09:00
Nobuyoshi Nakada 8c6a2cc24e
Add check for USE_DEBUG_COUNTER 2022-07-03 00:05:52 +09:00
Nobuyoshi Nakada 3cf0018119
CI: Add conditions for `test_task` on MinGW 2022-07-01 20:55:29 +09:00
Nobuyoshi Nakada 7dfaa617a4
Use `matrix.arch` separated from `matrix.configure`
Statically determined value should be set statically.
2022-06-30 17:56:04 +09:00
Nobuyoshi Nakada 41cdf9b114
Show flags instead of `-s` option in `GNUMAKEFLAGS` 2022-06-23 22:52:45 +09:00
Nobuyoshi Nakada 2f7c0f656e
Pass LDFLAGS via environment variable 2022-06-23 22:52:45 +09:00
Nobuyoshi Nakada e6f92cada1 Refactor compilations workflow
Now some entries need multiple variables for customization, and only
one environment variable per entry is not enough.
To solve it, dccfff943c has introduced overriding variables by `env`
key for each entries.
This commit uses `env` keys for the other environment variables too,
instead of appending to `$GITHUB_ENV`.
2022-06-22 18:32:22 +09:00
卜部昌平 7ef67bf9a2 [CI] add gcc-12 2022-06-21 15:30:54 +09:00
Jun Aruga eed24b5ee0 .github/workflows/compilers.yml: annocheck: Fix gaps and notes test.
This commit fixes on the annocheck gaps and notes tests on Ubuntu focal on CI.
Added the gcc `-Wa,--generate-missing-build-notes=yes` flag.

See the links below.
* -Wa,option: <https://gcc.gnu.org/onlinedocs/gcc-11.3.0/gcc/Assembler-Options.html#Assembler-Options>.
* --generate-missing-build-notes=yes: <https://www.man7.org/linux/man-pages/man1/as.1.html>.
2022-06-21 09:38:52 +12:00
Jun Aruga f8b6d4f4d1 .github/workflows/compilers.yml: Skip gaps test on annocheck 10.76.
This commit is to skip a failure with annocheck 10.76 on the annocheck test
case on the CI. Previously The test worked with annocheck 10.73.

The issue was reported at <https://bugs.ruby-lang.org/issues/18061#note-24>.
> Hardened: ruby: MAYB: test: gaps because no notes found
> Hardened: ruby: info: For more information visit: https://sourceware.org/annobin/annobin.html/Test-gaps.html

It seems that the annocheck added the gaps test at 10.76. Maybe the upstream commit is below.

The annocheck is a part of the annobin project: https://sourceware.org/annobin/
```
$ git clone git://sourceware.org/git/annobin.git

$ git show 61184ae1180a134bfbbd125e9fe339baedd67c18
commit 61184ae1180a134bfbbd125e9fe339baedd67c18
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Jun 13 16:56:46 2022 +0100

    Annocheck: Add TEST_GAPS.  Add MAYB for TEST_NOTES if DWARF info could not be found
...
```
2022-06-20 12:08:25 +02:00
Nobuyoshi Nakada 5047283070
Skip CIs if the head commit message contains '[DOC]' 2022-06-19 11:05:31 +09:00
Jun Aruga cfcf33f127 .github/workflows/compilers.yml: annocheck: Fix a linker flag to pass MJIT tests.
Set the linker flag `-Wl,-z,now` properly.

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>

Fixes [Bug #18781]
2022-06-07 00:25:19 +02:00
Alan Wu 899c90cf8a
YJIT: Relax minimum Rust version requirement to 1.58.1
We want to make it convenient for people to build YJIT and Rust version 1.58.1
or above is available on Ubuntu Jammy, Debian testing, and Fedora 36 through
the usual package manager on those systems. This saves the need to install
`rustup` for some people.

Our code is already 1.58.1 compatible so this commit simply tweaks CI to make
sure that we keep supporting that version. We still test against the latest Rust
version in `--enable-yjit=dev` builds through the Rust version available in
GitHub's CI image.

Rust versions older than 1.58.1 might build YJIT today, but we might make
incompatible changes in the future.

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
2022-05-29 13:43:02 -04:00
Koichi Sasada 2d1e7dfc36 remove `-DTHREAD_DEBUG` rule
(but it was already commented out)
2022-05-24 10:06:51 +09:00
Takashi Kokubun ead96e7b44
Rename test_jit to test_mjit
to avoid confusion with YJIT
2022-05-20 21:32:55 -07:00
Kaíque Kandy Koga aab683af0e
Write skipping instead of skiping [ci skip]
https://www.lexico.com/en/definition/skip
2022-05-18 11:28:36 +09:00
Jun Aruga dccfff943c Add `make test-annocheck` to detect security issues.
* Note that as the annocheck binary package is not available on Ubuntu, and it
  is working in progress in Debian, the script uses Fedora container, and
  it requires docker or podman command.
  https://www.debian.org/devel/wnpp/itp.en.html
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926470
* .github/workflows/compilers.yml: Add "gcc-11 annocheck" case.
  To pass the CI, set `TEST_ANNOCHECK_OPTS: "--skip-pie --skip-notes"` for now.
  See <https://bugs.ruby-lang.org/issues/18061>.
* Skip MJIT tests in case of annocheck case.
  The MJIT tests fail in the annocheck case.
  See <https://bugs.ruby-lang.org/issues/18781>.
2022-05-16 10:10:16 +02:00
Jun Aruga 7522343351 .github/workflows/compilers.yml: Add configure --enable-mkmf-verbose case. 2022-05-12 12:36:10 +02:00
dependabot[bot] 63932ec33e Bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 11:22:26 +09:00
Alan Wu f90549cd38 Rust YJIT
In December 2021, we opened an [issue] to solicit feedback regarding the
porting of the YJIT codebase from C99 to Rust. There were some
reservations, but this project was given the go ahead by Ruby core
developers and Matz. Since then, we have successfully completed the port
of YJIT to Rust.

The new Rust version of YJIT has reached parity with the C version, in
that it passes all the CRuby tests, is able to run all of the YJIT
benchmarks, and performs similarly to the C version (because it works
the same way and largely generates the same machine code). We've even
incorporated some design improvements, such as a more fine-grained
constant invalidation mechanism which we expect will make a big
difference in Ruby on Rails applications.

Because we want to be careful, YJIT is guarded behind a configure
option:

```shell
./configure --enable-yjit # Build YJIT in release mode
./configure --enable-yjit=dev # Build YJIT in dev/debug mode
```

By default, YJIT does not get compiled and cargo/rustc is not required.
If YJIT is built in dev mode, then `cargo` is used to fetch development
dependencies, but when building in release, `cargo` is not required,
only `rustc`. At the moment YJIT requires Rust 1.60.0 or newer.

The YJIT command-line options remain mostly unchanged, and more details
about the build process are documented in `doc/yjit/yjit.md`.

The CI tests have been updated and do not take any more resources than
before.

The development history of the Rust port is available at the following
commit for interested parties:
1fd9573d8b

Our hope is that Rust YJIT will be compiled and included as a part of
system packages and compiled binaries of the Ruby 3.2 release. We do not
anticipate any major problems as Rust is well supported on every
platform which YJIT supports, but to make sure that this process works
smoothly, we would like to reach out to those who take care of building
systems packages before the 3.2 release is shipped and resolve any
issues that may come up.

[issue]: https://bugs.ruby-lang.org/issues/18481

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Noah Gibbs <the.codefolio.guy@gmail.com>
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2022-04-27 11:00:22 -04:00
Alan Wu 9c44b5fbc8 [CI] Use -O2 on LTO builds as intended
Previously, since the `optflags` environment variable was set to `-O1`
and `optflags` comes after the flags appended as `CC`, we were doing LTO
builds with `-O1`.
2022-04-25 14:29:19 -04:00
卜部昌平 4a4c1d6920
[CI] resort to clang-14 (#5824)
* [CI] resort to clang-14

Clang 15 + --std=c2x combination seems actively developed now.
Might better wait for them to mature

* also change default compiler
2022-04-20 16:05:37 +09:00
Tim Smith 4299375b9b Github -> GitHub
Fix the case of GitHub in various places

Signed-off-by: Tim Smith <tsmith@mondoo.com>
2022-04-19 08:31:41 +09:00
Alan Wu 307cb57ba6 Fix build errors with development version of Clang
Maybe not the best idea for CI stability to use development versions of
Clang, but that does give us a preview of what's coming and gives us a
chance to make suggestions upstream.
2022-04-14 15:47:27 -04:00
Hiroshi SHIBATA 033d979640 Disabled cross compile for unknown errors with psych build 2022-03-25 09:53:07 +09:00
Hiroshi SHIBATA 829754b329 Added libyaml-dev into BASERUBY check 2022-03-25 09:53:07 +09:00
dependabot[bot] 137e69b481 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 20:39:14 +09:00
dependabot[bot] 9deacb3155 Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 20:38:15 +09:00
Hiroshi SHIBATA 2ec82dd361
Added dependabot configuration for actions dependencies 2022-03-24 20:31:57 +09:00
Nobuyoshi Nakada 32af1a3b5e [MSWin] Try VS2022 2022-02-20 20:39:48 +09:00
Nobuyoshi Nakada 71388f9d39 [MSWin] Reduce duplicate configurations 2022-02-20 20:39:48 +09:00
Nobuyoshi Nakada 7a8ea2e497
[MSWin] Install OpenSSL with vcpkg 2022-02-13 18:25:59 +09:00
卜部昌平 2cc890d7d3 LLVM 15 begun.
See also a2601c9887
2022-02-10 08:24:18 +09:00
Nobuyoshi Nakada 8fe2ce83ef
[MSWin] Link all vcpkg DLLs except for readline 2022-02-07 13:40:48 +09:00
Nobuyoshi Nakada 65ccae5b2a
[MSWin] Install libyaml using vcpkg 2022-02-07 13:40:48 +09:00
Nobuyoshi Nakada 402d76485c
[MSWin] Install libffi using vcpkg 2022-02-06 22:23:55 +09:00
Nobuyoshi Nakada b9083c206a
[MSWin] Cache installed vcpkg packages 2022-02-06 22:22:58 +09:00
Nobuyoshi Nakada 7ce3a100f2
Fold command line items 2022-02-06 19:22:44 +09:00
Nobuyoshi Nakada 82b0a9004c
[wasm] skip pull-requests labeled as Documentation [ci skip] 2022-01-20 13:18:33 +09:00
卜部昌平 e4f8d5b2f5 .github/workflows: BASERUBY check for Ruby 3.1 2022-01-19 15:38:02 +09:00
Yuta Saito d015b0c928 [wasm] add ci workflow .github/workflows/wasm.yml 2022-01-19 11:19:06 +09:00
Nobuyoshi Nakada 2ae9da23c5
Check with the latest stable 2022-01-16 17:15:02 +09:00
Nobuyoshi Nakada 6328db3c7e
Separate the tests which fail when load-relative enabled 2022-01-16 16:09:12 +09:00