Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 4f15e7b

Browse files
committed
bump lib-ruby-parser, update release workflow
1 parent b8dc52b commit 4f15e7b

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
BUILD_ENV: release
1313
TARGET: ${{ matrix.build.target }}
1414
CXX: ${{ matrix.build.cxx }}
15-
LD: ${{ matrix.build.ld }}
1615
AR: ${{ matrix.build.ar }}
1716
strategy:
1817
fail-fast: false
@@ -21,23 +20,20 @@ jobs:
2120
- os: ubuntu-latest
2221
target: x86_64-unknown-linux-gnu
2322
cxx: clang++-12
24-
ld: ld.lld-12
2523
ar: llvm-ar-12
2624
lib_file: libruby_parser_cpp.a
2725
output_artifact_name: libruby_parser_cpp-x86_64-unknown-linux-gnu.a
2826

2927
- os: macos-latest
3028
target: x86_64-apple-darwin
3129
cxx: clang++
32-
ld: ld
3330
ar: ar
3431
lib_file: libruby_parser_cpp.a
3532
output_artifact_name: libruby_parser_cpp-x86_64-apple-darwin.a
3633

3734
- os: windows-latest
3835
target: x86_64-pc-windows-msvc
3936
cxx: cl.exe
40-
ld: link.exe
4137
lib_file: libruby_parser_cpp.lib
4238
output_artifact_name: libruby_parser_cpp-x86_64-pc-windows-msvc.lib
4339

@@ -78,8 +74,21 @@ jobs:
7874
name: ${{ matrix.build.output_artifact_name }}
7975
path: ${{ matrix.build.output_artifact_name }}
8076

77+
- name: download benchmark assets
78+
run: make benchmark/download
79+
80+
- name: build C++ runner
81+
run: make benchmark/cpp-parser
82+
83+
# NOTE: ruby/setup-ruby breaks paths for MSVC,
84+
# and so all files must be compiled before running Ruby
85+
- name: install ruby
86+
uses: ruby/setup-ruby@v1
87+
with:
88+
ruby-version: "3.1.1"
89+
8190
- name: benchmark
82-
run: make benchmark/download && make benchmark/record
91+
run: make benchmark/record
8392

8493
- name: upload ${{ matrix.build.target }}.benchmark-out
8594
uses: actions/upload-artifact@v2

benchmark/cpp-parser

-6.15 MB
Binary file not shown.

benchmark/download_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def abort(message)
77
end
88

99
asset_name = ENV.fetch('ASSET_NAME') { abort 'ASSET_NAME env var must be provided.' }
10-
asset_url = "https://github.com/lib-ruby-parser/bench/releases/download/4.0.1+ruby-3.1.1/#{asset_name}"
10+
asset_url = "https://github.com/lib-ruby-parser/bench/releases/download/v4.0.2+ruby-3.1.1/#{asset_name}"
1111
save_as = ENV.fetch('SAVE_AS') { abort 'SAVE_AS env var must be provided' }
1212

1313
File.open(save_as, 'wb') do |file|

ruby-parser-cpp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ default = []
1515
tests = []
1616

1717
[dependencies]
18-
lib-ruby-parser = {version = "4.0.1+ruby-3.1.1"}
18+
lib-ruby-parser = {version = "4.0.2+ruby-3.1.1"}
1919

2020
[profile.dev]
2121
panic = "abort"

0 commit comments

Comments
 (0)