Skip to content

Commit

Permalink
chore: update actions/*
Browse files Browse the repository at this point in the history
* update actions/checkout to v4
* update actions/cache to v4
* update actions/setup-node to v4
* remove unnecessary usages of action/cache for node
* update actions/setup-python to v5
* update actions/setup-dotnet to v3
* update actions/setup-java to v4
  • Loading branch information
ktrz committed Jan 24, 2024
1 parent 036be2a commit 674cf2f
Show file tree
Hide file tree
Showing 15 changed files with 110 additions and 164 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmarkdotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Run Benchmark.Net benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.101' # SDK Version to use. keep in line with examples/benchmarkdotnet/global.json
- name: Run benchmark
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/benchmarkjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
name: Run JavaScript benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Run benchmark
run: cd examples/benchmarkjs && npm install && node bench.js | tee output.txt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catch2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Run C++ benchmark example
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build and run benchmarks with Catch2
run: |
cd examples/catch2
Expand Down
106 changes: 41 additions & 65 deletions .github/workflows/ci-results-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ jobs:
name: Run Rust benchmark example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand All @@ -48,22 +45,19 @@ jobs:
name: Run Go benchmark example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: actions/setup-go@v4
with:
go-version: "stable"
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand All @@ -86,19 +80,16 @@ jobs:
name: Run JavaScript benchmark example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand All @@ -121,22 +112,19 @@ jobs:
name: Run Pytest benchmark example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/setup-python@v2
cache: 'npm'
- uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand All @@ -162,26 +150,23 @@ jobs:
name: Run Google C++ Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
run: |
cp ./dist/other-repo/dev/bench/data.js before_data.js
- name: Cache Benchmark library
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: examples/cpp/benchmark
key: ${{ runner.os }}-googlebenchmark-v1.5.0
Expand All @@ -204,19 +189,16 @@ jobs:
name: Run Catch2 C++ Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand Down Expand Up @@ -244,19 +226,16 @@ jobs:
name: Run Julia benchmark example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand Down Expand Up @@ -288,19 +267,19 @@ jobs:
name: Run Benchmark.Net .Net Benchmark Framework example - github.com/benchmark-action/github-action-benchmark-results
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.101' # SDK Version to use. keep in line with examples/benchmarkdotnet/global.json
- uses: actions/cache@v1
- uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Save previous data.js
Expand All @@ -323,19 +302,16 @@ jobs:
name: Run alert check with actions/cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: benchmark-action/github-action-benchmark-results
ref: 'gh-pages'
path: 'dist/other-repo'
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/setup-go@v4
Expand All @@ -344,7 +320,7 @@ jobs:
- name: Run benchmark
run: cd examples/go && go test -bench 'BenchmarkFib' | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-ci-cache-test
Expand Down
Loading

0 comments on commit 674cf2f

Please sign in to comment.