Skip to content

Commit c384d3b

Browse files
authored
Merge pull request #631 from dfinity-berestovskyy/andriy/update-rust-counter
Update `rust/counter` example
2 parents f69d8aa + 4843fcb commit c384d3b

File tree

10 files changed

+197
-608
lines changed

10 files changed

+197
-608
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: rust-counter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- rust/counter/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/rust-counter-example.yml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
rust-counter-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 Counter Darwin
23+
run: |
24+
dfx start --background
25+
pushd rust/counter
26+
make test
27+
popd
28+
rust-counter-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 Counter Linux
35+
run: |
36+
dfx start --background
37+
pushd rust/counter
38+
make test
39+
popd
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: rust-counter
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- rust/counter/**
6+
- .github/workflows/provision-darwin.sh
7+
- .github/workflows/provision-linux.sh
8+
- .github/workflows/rust-counter-example.yml
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- run: echo 'Not needed - relevant folder not touched'

0 commit comments

Comments
 (0)