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

Commit ca77588

Browse files
committed
bump lib-ruby-parser/MRI version to 3.1.1
1 parent cdde7eb commit ca77588

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/actions/make-repos-zip/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
ruby-version:
55
description: "ruby version"
66
required: true
7-
default: "3.0.0"
7+
default: "3.1.1"
88
runs:
99
using: "composite"
1010
steps:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919

2020
- name: make repos.zip
2121
uses: ./.github/actions/make-repos-zip
@@ -43,7 +43,7 @@ jobs:
4343
- { os: windows-latest, exe: .exe, target: x86_64-pc-windows-gnu }
4444
steps:
4545
- name: checkout
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v3
4747

4848
- name: download repos
4949
uses: actions/download-artifact@v2
@@ -66,7 +66,7 @@ jobs:
6666
- name: install ruby
6767
uses: ruby/setup-ruby@v1
6868
with:
69-
ruby-version: "3.0.0"
69+
ruby-version: "3.1.1"
7070

7171
- name: test rust-parser
7272
run: |
@@ -95,7 +95,7 @@ jobs:
9595
runs-on: ubuntu-latest
9696
steps:
9797
- name: checkout
98-
uses: actions/checkout@v2
98+
uses: actions/checkout@v3
9999

100100
# Parsers
101101
- uses: actions/download-artifact@v2

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- { os: windows-latest, target: x86_64-pc-windows-gnu }
2828
steps:
2929
- name: checkout
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: build rust-parser
3333
uses: ./.github/actions/make-rust-parser
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: checkout
52-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
5353

5454
- name: make repos.zip
5555
uses: ./.github/actions/make-repos-zip

rust-parse/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "0.1.0"
77

88
[dependencies]
99
jemallocator = {version = "0.3.2", optional = true}
10-
lib-ruby-parser = "4.0.0+ruby-3.1.0"
10+
lib-ruby-parser = "4.0.1+ruby-3.1.1"
1111

1212
[profile.release]
1313
lto = true

rust-parse/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ use lib_ruby_parser::{Parser, ParserOptions};
99
use std::time::Instant;
1010

1111
fn files_to_parse() -> Vec<FileToParse> {
12-
let filelist_path = std::env::var("FILELIST_PATH").unwrap();
12+
let filelist_path = std::env::var("FILELIST_PATH").unwrap_or_else(|_| {
13+
println!(
14+
"Usage:
15+
FILELIST_PATH=<path/to/filelist> ./rust-parser"
16+
);
17+
std::process::exit(1);
18+
});
1319
let filelist = std::fs::read_to_string(&filelist_path).unwrap();
1420

1521
filelist

0 commit comments

Comments
 (0)