Skip to content

Commit ada02cb

Browse files
committed
CI disable bench dependencies after checkout
1 parent 80d36e7 commit ada02cb

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ env:
2121
# - README.md
2222
rust_minver: 1.56.0
2323

24+
defaults:
25+
run:
26+
shell: bash
27+
2428
jobs:
2529
format:
2630
strategy:
@@ -29,6 +33,8 @@ jobs:
2933
steps:
3034
- name: Checkout repository
3135
uses: actions/checkout@v2
36+
- name: Disable bench dependencies
37+
run: ./.github/workflows/disable-bench-deps.sh
3238
- name: Install Rust nightly
3339
run: |
3440
rustup toolchain install nightly
@@ -49,6 +55,8 @@ jobs:
4955
steps:
5056
- name: Checkout repository
5157
uses: actions/checkout@v2
58+
- name: Disable bench dependencies
59+
run: ./.github/workflows/disable-bench-deps.sh
5260
- name: Install dependencies
5361
if: matrix.os == 'ubuntu-latest'
5462
run: sudo bash ./.github/workflows/install-deps.sh
@@ -87,12 +95,11 @@ jobs:
8795
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
8896
target: ['', 'x86_64-apple-ios']
8997
runs-on: ${{ matrix.os }}
90-
defaults:
91-
run:
92-
shell: bash
9398
steps:
9499
- name: Checkout repository
95100
uses: actions/checkout@v2
101+
- name: Disable bench dependencies
102+
run: ./.github/workflows/disable-bench-deps.sh
96103
- name: Install dependencies
97104
if: matrix.os == 'ubuntu-latest'
98105
run: sudo bash ./.github/workflows/install-deps.sh
@@ -116,6 +123,8 @@ jobs:
116123
steps:
117124
- name: Checkout repository
118125
uses: actions/checkout@v2
126+
- name: Disable bench dependencies
127+
run: ./.github/workflows/disable-bench-deps.sh
119128
- name: Install dependencies
120129
run: sudo bash ./.github/workflows/install-deps.sh
121130
- name: Install Rust nightly
@@ -141,6 +150,8 @@ jobs:
141150
steps:
142151
- name: Checkout repository
143152
uses: actions/checkout@v2
153+
- name: Disable bench dependencies
154+
run: ./.github/workflows/disable-bench-deps.sh
144155
- name: Install dependencies (Linux)
145156
if: matrix.os == 'ubuntu-latest'
146157
run: sudo bash ./.github/workflows/install-deps.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
perl -pi -e 's/^(# \[bench-dependencies])/substr($&, 2)/e' ./spdlog/Cargo.toml

spdlog/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ regex = "1.7.0"
7171
paste = "1.0.14"
7272
trybuild = "1.0.90"
7373

74-
# The following dependencies are used for benchmarks
74+
# [bench-dependencies]
7575
log = "=0.4.21"
7676
slog = "=2.7.0"
7777
sloggers = "=2.2.0"

0 commit comments

Comments
 (0)