-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (68 loc) · 1.72 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
pull_request:
push:
branches:
- main
tags:
- v*
paths-ignore:
- "README.md"
jobs:
cargo-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PocketIC server
uses: dfinity/pocketic@main
with:
pocket-ic-server-version: "7.0.0"
- uses: Swatinem/rust-cache@v2
- name: Cargo test
run: unset CI && cargo test
# docker-build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# include:
# - project: rpc
# artifact: ic-solana-rpc.wasm.gz
# - project: wallet
# artifact: ic-solana-wallet.wasm.gz
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - uses: docker-practice/actions-setup-docker@master
# timeout-minutes: 12
# - name: 'Deterministic build'
# run: ./scripts/docker-build --${{ matrix.project }}
# - name: Archive Artifact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.artifact }}
# path: artifacts/${{ matrix.project }}/${{ matrix.artifact }}
# - name: Add summary
# run: |
# hash=`cat artifacts/${{ matrix.project }}/${{ matrix.artifact }}.sha256`
# echo "SHA-256 hash: ${hash}" >> $GITHUB_STEP_SUMMARY
# e2e:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@master
#
# - uses: Swatinem/rust-cache@v2
#
# - name: Install dfx
# uses: dfinity/setup-dfx@main
#
# - name: Start dfx
# run: dfx start --background
#
# - name: Run E2E tests
# run: scripts/e2e
#
# - name: Run examples
# run: scripts/examples
#