Skip to content

Commit 81e3e53

Browse files
authored
Merge pull request #632 from dfinity-berestovskyy/andriy/update-performance-counters
Update `rust/performance_counters` example
2 parents 494120f + b88c391 commit 81e3e53

File tree

6 files changed

+557
-5
lines changed

6 files changed

+557
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: rust-performance_counters
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- rust/performance_counters/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/rust-performance_counters-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
rust-performance_counters-example-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: DFX_VERSION="0.15.2" bash .github/workflows/provision-darwin.sh
22+
- name: Rust Performance Counters Darwin
23+
run: |
24+
dfx start --background
25+
pushd rust/performance_counters
26+
make test
27+
popd
28+
rust-performance_counters-example-linux:
29+
runs-on: ubuntu-20.04
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Provision Linux
33+
run: DFX_VERSION="0.15.2" bash .github/workflows/provision-linux.sh
34+
- name: Rust Performance Counters Linux
35+
run: |
36+
dfx start --background
37+
pushd rust/performance_counters
38+
make test
39+
popd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: rust-performance_counters
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- rust/performance_counters/**
6+
- .github/workflows/provision-darwin.sh
7+
- .github/workflows/provision-linux.sh
8+
- .github/workflows/rust-performance_counters-example.yaml
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
rust-performance_counters-example-darwin:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- run: echo 'Not needed - relevant folder not touched'
17+
rust-performance_counters-example-linux:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- run: echo 'Not needed - relevant folder not touched'

0 commit comments

Comments
 (0)