Skip to content

Commit

Permalink
CI disable bench dependencies after checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Jun 12, 2024
1 parent 80d36e7 commit ada02cb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ env:
# - README.md
rust_minver: 1.56.0

defaults:
run:
shell: bash

jobs:
format:
strategy:
Expand All @@ -29,6 +33,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Disable bench dependencies
run: ./.github/workflows/disable-bench-deps.sh
- name: Install Rust nightly
run: |
rustup toolchain install nightly
Expand All @@ -49,6 +55,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Disable bench dependencies
run: ./.github/workflows/disable-bench-deps.sh
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo bash ./.github/workflows/install-deps.sh
Expand Down Expand Up @@ -87,12 +95,11 @@ jobs:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
target: ['', 'x86_64-apple-ios']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Disable bench dependencies
run: ./.github/workflows/disable-bench-deps.sh
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo bash ./.github/workflows/install-deps.sh
Expand All @@ -116,6 +123,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Disable bench dependencies
run: ./.github/workflows/disable-bench-deps.sh
- name: Install dependencies
run: sudo bash ./.github/workflows/install-deps.sh
- name: Install Rust nightly
Expand All @@ -141,6 +150,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Disable bench dependencies
run: ./.github/workflows/disable-bench-deps.sh
- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: sudo bash ./.github/workflows/install-deps.sh
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/disable-bench-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
perl -pi -e 's/^(# \[bench-dependencies])/substr($&, 2)/e' ./spdlog/Cargo.toml
2 changes: 1 addition & 1 deletion spdlog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ regex = "1.7.0"
paste = "1.0.14"
trybuild = "1.0.90"

# The following dependencies are used for benchmarks
# [bench-dependencies]
log = "=0.4.21"
slog = "=2.7.0"
sloggers = "=2.2.0"
Expand Down

0 comments on commit ada02cb

Please sign in to comment.