Skip to content

Commit b37e828

Browse files
authored
feat: CRP-2844 CRP-2850 add a Motoko backend for password manager w/ metadata and prepare for ICP Ninja (#160)
Also removes the declarations, which are auto-generated from the backend candid.
1 parent ec33f0e commit b37e828

39 files changed

+9255
-4321
lines changed

.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/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)