Skip to content

Commit 818c8a6

Browse files
authored
chore: migrate rust/x509 to icp-cli (#1416)
1 parent 6578549 commit 818c8a6

19 files changed

Lines changed: 1443 additions & 1737 deletions

File tree

.github/workflows/rust-x509-example.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/x509.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: x509
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
paths:
8+
- rust/x509/**
9+
- .github/workflows/x509.yml
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
rust-x509:
17+
runs-on: ubuntu-24.04
18+
container: ghcr.io/dfinity/icp-dev-env-rust:1.0.1
19+
env:
20+
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
steps:
22+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
23+
- name: Install dependencies
24+
run: apt-get update && apt-get install -y --no-install-recommends libssl-dev pkg-config
25+
- name: Install PocketIC server
26+
uses: dfinity/pocketic@a980c334fab1b21b0b8a6bba38e1a10836e7258b # main
27+
with:
28+
pocket-ic-server-version: "15.0.0"
29+
- name: Build WASM and run PocketIC integration tests
30+
working-directory: rust/x509
31+
run: |
32+
icp build backend
33+
cargo test --package backend --test integration_tests
34+
- name: Deploy and test
35+
working-directory: rust/x509
36+
run: |
37+
icp network start -d
38+
icp deploy
39+
bash test.sh

rust/x509/.devcontainer/devcontainer.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

rust/x509/BUILD.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)