Skip to content

Commit 9b15025

Browse files
committed
Merge branch 'main' into alex/encrypted-notes
2 parents 9fbc292 + dff229a commit 9b15025

File tree

82 files changed

+18728
-7453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+18728
-7453
lines changed

.github/workflows/backend-motoko-format-check.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ jobs:
2424
- name: Run MOPS Format Check Linux
2525
run: |
2626
for d in $(find . -type d -name '.mops' -prune -o -type f -name 'mops.toml' -printf '%h\n'); do
27-
cd $d
28-
echo "Checking directory: $(pwd)" && mops format --check
29-
cd -
27+
if [ -d "$d/src" ]; then
28+
cd $d
29+
echo "Checking directory: $(pwd)" && mops format --check
30+
cd -
31+
else
32+
echo "Skipping directory $d (no src directory inside)"
33+
fi
3034
done
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: examples-basic-bls-signing
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- examples/basic_bls_signing/**
9+
- backend/**
10+
- Cargo.toml
11+
- Cargo.lock
12+
- frontend/ic_vetkeys/**
13+
- package.json
14+
- package-lock.json
15+
- .github/workflows/provision-darwin.sh
16+
- .github/workflows/provision-linux.sh
17+
- .github/workflows/examples-basic-bls-signing.yml
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
jobs:
22+
examples-basic-bls-signing-darwin:
23+
runs-on: macos-15
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Provision Darwin
27+
run: |
28+
bash .github/workflows/provision-darwin.sh
29+
- name: Deploy Basic BLS Signing Darwin
30+
run: |
31+
set -eExuo pipefail
32+
cargo install candid-extractor
33+
npm i
34+
pushd examples/basic_bls_signing
35+
./deploy_locally.sh
36+
cd frontend
37+
npm run lint
38+
examples-basic-bls-signing-linux:
39+
runs-on: ubuntu-24.04
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Provision Linux
43+
run: bash .github/workflows/provision-linux.sh
44+
- name: Deploy Basic BLS Signing Linux
45+
run: |
46+
set -eExuo pipefail
47+
cargo install candid-extractor
48+
npm i
49+
pushd examples/basic_bls_signing
50+
./deploy_locally.sh
51+
cd frontend
52+
npm run lint

.github/workflows/examples-password-manager-with-metadata.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222
jobs:
23-
examples-password-manager-with-metadata-darwin:
23+
examples-password-manager-with-metadata-rust-darwin:
2424
runs-on: macos-15
2525
steps:
2626
- uses: actions/checkout@v4
@@ -30,11 +30,11 @@ jobs:
3030
- name: Deploy Password Manager With Metadata Darwin
3131
run: |
3232
set -eExuo pipefail
33-
cd examples/password_manager_with_metadata
34-
./deploy_locally.sh
33+
cd examples/password_manager_with_metadata/rust
34+
dfx start --background && dfx deploy
3535
cd frontend
3636
npm run lint
37-
examples-password-manager-with-metadata-linux:
37+
examples-password-manager-with-metadata-rust-linux:
3838
runs-on: ubuntu-24.04
3939
steps:
4040
- uses: actions/checkout@v4
@@ -43,7 +43,34 @@ jobs:
4343
- name: Deploy Password Manager With Metadata Linux
4444
run: |
4545
set -eExuo pipefail
46-
cd examples/password_manager_with_metadata
47-
./deploy_locally.sh
46+
cd examples/password_manager_with_metadata/rust
47+
dfx start --background && dfx deploy
48+
cd frontend
49+
npm run lint
50+
examples-password-manager-with-metadata-motoko-darwin:
51+
runs-on: macos-15
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Provision Darwin
55+
run: |
56+
bash .github/workflows/provision-darwin.sh
57+
- name: Deploy Password Manager With Metadata Darwin
58+
run: |
59+
set -eExuo pipefail
60+
cd examples/password_manager_with_metadata/motoko
61+
dfx start --background && dfx deploy
62+
cd frontend
63+
npm run lint
64+
examples-password-manager-with-metadata-motoko-linux:
65+
runs-on: ubuntu-24.04
66+
steps:
67+
- uses: actions/checkout@v4
68+
- name: Provision Linux
69+
run: bash .github/workflows/provision-linux.sh
70+
- name: Deploy Password Manager With Metadata Linux
71+
run: |
72+
set -eExuo pipefail
73+
cd examples/password_manager_with_metadata/motoko
74+
dfx start --background && dfx deploy
4875
cd frontend
4976
npm run lint

.github/workflows/examples-password-manager.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222
jobs:
23-
examples-password-manager-darwin:
23+
examples-password-manager-rust-darwin:
2424
runs-on: macos-15
2525
steps:
2626
- uses: actions/checkout@v4
@@ -31,11 +31,11 @@ jobs:
3131
run: |
3232
set -eExuo pipefail
3333
npm i
34-
pushd examples/password_manager
35-
./deploy_locally.sh
34+
cd examples/password_manager/rust
35+
dfx start --background && dfx deploy
3636
cd frontend
3737
npm run lint
38-
examples-password-manager-linux:
38+
examples-password-manager-rust-linux:
3939
runs-on: ubuntu-24.04
4040
steps:
4141
- uses: actions/checkout@v4
@@ -45,7 +45,36 @@ jobs:
4545
run: |
4646
set -eExuo pipefail
4747
npm i
48-
pushd examples/password_manager
49-
./deploy_locally.sh
48+
cd examples/password_manager/rust
49+
dfx start --background && dfx deploy
5050
cd frontend
5151
npm run lint
52+
examples-password-manager-motoko-darwin:
53+
runs-on: macos-15
54+
steps:
55+
- uses: actions/checkout@v4
56+
- name: Provision Darwin
57+
run: |
58+
bash .github/workflows/provision-darwin.sh
59+
- name: Deploy Password Manager Darwin
60+
run: |
61+
set -eExuo pipefail
62+
npm i
63+
cd examples/password_manager/motoko
64+
dfx start --background && dfx deploy
65+
cd frontend
66+
npm run lint
67+
examples-password-manager-motoko-linux:
68+
runs-on: ubuntu-24.04
69+
steps:
70+
- uses: actions/checkout@v4
71+
- name: Provision Linux
72+
run: bash .github/workflows/provision-linux.sh
73+
- name: Deploy Password Manager Linux
74+
run: |
75+
set -eExuo pipefail
76+
npm i
77+
cd examples/password_manager/motoko
78+
dfx start --background && dfx deploy
79+
cd frontend
80+
npm run lint

.github/workflows/provision-darwin.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ curl --location --output install-rustup.sh "https://sh.rustup.rs"
3434
bash install-rustup.sh -y
3535
rustup target add wasm32-unknown-unknown
3636

37+
cargo install candid-extractor
38+
3739
# Exit temporary directory.
3840
popd

.github/workflows/provision-linux.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@ rustup target add wasm32-unknown-unknown
3737
echo "$HOME/bin" >>$GITHUB_PATH
3838
echo "$HOME/.cargo/bin" >>$GITHUB_PATH
3939

40+
cargo install candid-extractor
41+
4042
# Exit temporary directory.
4143
popd

0 commit comments

Comments
 (0)