Skip to content

Commit b5430b4

Browse files
authoredNov 16, 2023
Fix post-merge CI workflows (risc0#1155)
1 parent 43020d3 commit b5430b4

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed
 

‎.github/workflows/bench_applications.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Benchmark Applications
22

33
on:
4-
push:
5-
branches: [ main ]
6-
# Only run benchmarks on changes to following paths:
7-
paths:
8-
- 'risc0/**'
9-
- '.github/workflows/bench_*'
4+
# push:
5+
# branches: [ main ]
6+
# # Only run benchmarks on changes to following paths:
7+
# paths:
8+
# - 'risc0/**'
9+
# - '.github/workflows/bench_*'
1010

1111
# # uncomment for only for testing changes to this workflow while in a PR
1212
# pull_request:
@@ -28,6 +28,7 @@ permissions:
2828
contents: read
2929

3030
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3132
RISC0_TOOLCHAIN_VERSION: test-release-2
3233

3334
jobs:
@@ -65,8 +66,6 @@ jobs:
6566
with:
6667
key: ${{ matrix.os }}-${{ matrix.feature }}
6768
- run: cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
68-
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7069
- run: cargo run --release --bin risc0-benchmark -F $FEATURE -- --out ${{ matrix.os }}-${{ matrix.device }}.csv all
7170
working-directory: benchmarks
7271
- run: cargo run --release --bin average -F $FEATURE -- --out ${{ matrix.os }}-${{ matrix.device }}.average.csv all

‎.github/workflows/bench_datasheet.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ permissions:
2828
contents: read
2929

3030
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3132
RISC0_BUILD_LOCKED: 1
3233
RISC0_TOOLCHAIN_VERSION: test-release-2
3334

@@ -66,8 +67,6 @@ jobs:
6667
with:
6768
key: ${{ matrix.os }}-${{ matrix.feature }}
6869
- run: cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7170
- run: cargo run --release -F $FEATURE --example loop -- --json | tee ${{ matrix.os }}-${{ matrix.device }}.json
7271
working-directory: risc0/zkvm
7372
- run: cargo run --release -- --out ../../risc0/zkvm/cycle_count.csv all

‎.github/workflows/bench_pr.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
contents: read
1414

1515
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1617
RISC0_BUILD_LOCKED: 1
1718
RISC0_TOOLCHAIN_VERSION: test-release-2
1819

@@ -30,9 +31,6 @@ jobs:
3031
- os: Linux
3132
feature: cuda
3233
device: nvidia_rtx_a5000
33-
- os: macOS
34-
feature: metal
35-
device: apple_m2_pro
3634

3735
env:
3836
FEATURE: ${{ matrix.feature }}
@@ -48,8 +46,6 @@ jobs:
4846
with:
4947
key: ${{ matrix.os }}-${{ matrix.feature }}
5048
- run: cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5349
- uses: risc0/criterion-compare-action@risc0
5450
id: criterion-cmp
5551
with:

‎.github/workflows/bench_trends.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ permissions:
2222
contents: read
2323

2424
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2526
RISC0_BUILD_LOCKED: 1
2627
RISC0_TOOLCHAIN_VERSION: test-release-2
2728

@@ -57,8 +58,6 @@ jobs:
5758
with:
5859
key: ${{ matrix.os }}-${{ matrix.feature }}
5960
- run: cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6261
- run: cargo bench -F $FEATURE --bench fib -- --output-format=bencher | tee output.txt
6362
- name: Store benchmark result
6463
uses: risc0/github-action-benchmark@risc0

0 commit comments

Comments
 (0)
Please sign in to comment.