Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener V2 #3

Closed
wants to merge 310 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
bb11bdd
add missing files
akshay111meher Sep 1, 2024
29cece8
temp update on decryptRequest
akshay111meher Sep 2, 2024
41c4652
revert
akshay111meher Sep 2, 2024
874afeb
update
akshay111meher Sep 2, 2024
76d9fec
update
akshay111meher Sep 2, 2024
a2bc0e7
add missing
akshay111meher Sep 2, 2024
3d2288f
add missing
akshay111meher Sep 2, 2024
c0df746
add missing~
akshay111meher Sep 2, 2024
5e3174a
update
akshay111meher Sep 2, 2024
f18c8b3
update
akshay111meher Sep 2, 2024
52a58fc
updates
akshay111meher Sep 2, 2024
f71ae8f
Update
akshay111meher Sep 2, 2024
e201930
add-helper
akshay111meher Sep 2, 2024
9dc2b22
update
akshay111meher Sep 2, 2024
498632f
update
akshay111meher Sep 2, 2024
39098a2
update
akshay111meher Sep 2, 2024
de1dcb3
update
akshay111meher Sep 2, 2024
75130a6
update
akshay111meher Sep 2, 2024
83760a7
update
akshay111meher Sep 2, 2024
05231d3
update
akshay111meher Sep 2, 2024
650d9d0
remove-sleeps
akshay111meher Sep 2, 2024
d0f79db
update
akshay111meher Sep 2, 2024
a1fb6e0
update
akshay111meher Sep 2, 2024
49d2bad
update
akshay111meher Sep 2, 2024
13fda69
update
akshay111meher Sep 2, 2024
f28f239
update
akshay111meher Sep 2, 2024
3d00ce5
update
akshay111meher Sep 3, 2024
d1eef1a
update
akshay111meher Sep 3, 2024
92f9652
update
akshay111meher Sep 3, 2024
37b98b6
uppdate
akshay111meher Sep 3, 2024
6415499
revert to old logic
akshay111meher Sep 3, 2024
2016650
revert to old logic
akshay111meher Sep 3, 2024
928d8ce
update
akshay111meher Sep 3, 2024
449557c
update
akshay111meher Sep 3, 2024
ae40625
update
akshay111meher Sep 3, 2024
5701c47
update
akshay111meher Sep 3, 2024
6cea374
update
akshay111meher Sep 3, 2024
64246f5
update
akshay111meher Sep 3, 2024
c39e404
update
akshay111meher Sep 3, 2024
b56475f
updateConfirmations
akshay111meher Sep 4, 2024
52b33b6
updateConfirmations
akshay111meher Sep 4, 2024
be2dd94
updateConfirmations
akshay111meher Sep 4, 2024
b033b6f
update
akshay111meher Sep 4, 2024
f28a141
update
akshay111meher Sep 4, 2024
d8a9041
update
akshay111meher Sep 4, 2024
5f0427c
update
akshay111meher Sep 4, 2024
9a5a404
update
akshay111meher Sep 4, 2024
a471c4c
update
akshay111meher Sep 4, 2024
207e4c6
update
akshay111meher Sep 4, 2024
cd17a15
update
akshay111meher Sep 4, 2024
12e88e7
generator registry layout set
akshay111meher Sep 6, 2024
a269198
add missing events
akshay111meher Sep 9, 2024
cbee7f3
update slash/stake event handlings
akshay111meher Sep 9, 2024
d294ea0
clippy fixes
akshay111meher Sep 9, 2024
34e4bda
refactor-generator-struct
akshay111meher Sep 9, 2024
4197f69
refactor-generator-struct
akshay111meher Sep 9, 2024
7a7702b
refactor-generator-struct
akshay111meher Sep 9, 2024
725bc6b
refactor-generator-struct
akshay111meher Sep 9, 2024
5782390
add back tests
akshay111meher Sep 9, 2024
68e78ad
check searches
akshay111meher Sep 9, 2024
8c01759
fix utilization issues
akshay111meher Sep 9, 2024
d736c26
fixes
akshay111meher Sep 9, 2024
0a053c8
fixes
akshay111meher Sep 9, 2024
2a3bfb0
Enable proofs to be fetched from matching directly
akshay111meher Sep 9, 2024
4970acb
Enable proofs to be fetched from matching directly
akshay111meher Sep 9, 2024
bffda1b
Enable proofs to be fetched from matching directly
akshay111meher Sep 9, 2024
ab8255e
Enable proofs to be fetched from matching directly
akshay111meher Sep 9, 2024
bf9ee8e
enable signing proofs from ncf prover and ivs
akshay111meher Sep 9, 2024
668e83e
fix
akshay111meher Sep 9, 2024
f0c9c4c
Induce Time limits on errors
akshay111meher Sep 11, 2024
f283b29
update
akshay111meher Sep 11, 2024
b7e1844
update
akshay111meher Sep 11, 2024
bf7adc1
update confirmations
akshay111meher Sep 11, 2024
e0292c2
update
akshay111meher Sep 12, 2024
0dfd767
update
akshay111meher Sep 12, 2024
0382330
update
akshay111meher Sep 12, 2024
6787ddc
update
akshay111meher Sep 12, 2024
78782b9
semaphore fixes
akshay111meher Sep 12, 2024
706ad49
semaphore-changes
akshay111meher Sep 12, 2024
66c3f01
semaphore-changes
akshay111meher Sep 12, 2024
832c438
semaphore-changes
akshay111meher Sep 12, 2024
48e8e3d
selection logic change
akshay111meher Sep 12, 2024
b9c51b6
update
akshay111meher Sep 12, 2024
bb927a1
update
akshay111meher Sep 12, 2024
8fbdb46
refactor matching logic
akshay111meher Sep 12, 2024
adaf078
refactor matching logic
akshay111meher Sep 12, 2024
36796ad
slave keys updates
akshay111meher Sep 13, 2024
54e30ce
add fn to generate ssc
akshay111meher Sep 13, 2024
ca31e96
add fn to generate ssc
akshay111meher Sep 13, 2024
bc3bced
add ssc layout
akshay111meher Sep 13, 2024
a12f5cf
sign address encrypted
akshay111meher Sep 16, 2024
fee9647
sign address encrypted
akshay111meher Sep 16, 2024
747101a
secure communication channel created
akshay111meher Sep 16, 2024
9d0fd86
matching engine generate_config_encrypted
akshay111meher Sep 17, 2024
4b2d644
matching engine generate_config_encrypted
akshay111meher Sep 17, 2024
ebe532c
update meconfig encrypted
akshay111meher Sep 17, 2024
f0f257a
update meconfig encrypted
akshay111meher Sep 17, 2024
961e9df
Update
akshay111meher Sep 17, 2024
9afc86f
Update
akshay111meher Sep 17, 2024
2057f65
start me with encrypted call
akshay111meher Sep 17, 2024
961e54a
stop matching engine enccrypted
akshay111meher Sep 17, 2024
08212e4
restart matching engine encrypted
akshay111meher Sep 17, 2024
723a753
add simple health check on listener for liveliness
akshay111meher Sep 19, 2024
adcb82f
update
akshay111meher Sep 19, 2024
a84872d
version fixes
akshay111meher Sep 19, 2024
f02af26
version fixes
akshay111meher Sep 19, 2024
b53d0f4
structure update
akshay111meher Sep 19, 2024
bf45c17
update
akshay111meher Sep 19, 2024
79084bf
proof-count
akshay111meher Sep 19, 2024
d1395cd
update
akshay111meher Sep 19, 2024
701199b
update
akshay111meher Sep 19, 2024
9deae9f
update
akshay111meher Sep 19, 2024
d80e167
force transaction inlistener
akshay111meher Sep 20, 2024
b48b7ea
remove-params
akshay111meher Sep 25, 2024
726e64c
in progress proofs to stats
akshay111meher Sep 30, 2024
efa24ea
spell checks
akshay111meher Oct 17, 2024
e3dcd10
spell checks
akshay111meher Oct 17, 2024
edc15f9
add rayon
akshay111meher Oct 18, 2024
38d2736
ui routes to matching engine
akshay111meher Oct 21, 2024
071b6c3
increase sleep time
akshay111meher Oct 21, 2024
94c9e94
cleanup changes
akshay111meher Oct 21, 2024
60ae2b8
finer rate limits
akshay111meher Oct 21, 2024
ab829b3
Update
akshay111meher Oct 21, 2024
2744912
closure fixes
akshay111meher Oct 21, 2024
cdc1b4b
update
akshay111meher Oct 22, 2024
8fda3ff
add back rayon
akshay111meher Oct 22, 2024
44db0e3
update
akshay111meher Oct 22, 2024
7b23fd4
checkpoint update
akshay111meher Oct 22, 2024
161fe62
Mutex to RwLocks
akshay111meher Oct 22, 2024
540ceb2
reduce rl
akshay111meher Oct 22, 2024
c969fc3
simply cleanup
akshay111meher Oct 22, 2024
de85041
simply cleanup
akshay111meher Oct 22, 2024
88b678a
update
akshay111meher Oct 22, 2024
c16e136
update
akshay111meher Oct 22, 2024
2079bd7
update
akshay111meher Oct 22, 2024
0ad3230
update
akshay111meher Oct 23, 2024
4081bfe
gr resource access optimise
akshay111meher Oct 23, 2024
bfdf65e
update
akshay111meher Oct 23, 2024
b324f65
move some field to priv
akshay111meher Oct 24, 2024
88c376f
enable matchgine engine cors
akshay111meher Oct 24, 2024
fcf09ba
route updates
akshay111meher Oct 24, 2024
6511e65
init
akshay111meher Oct 24, 2024
6e8ec52
single market
akshay111meher Oct 24, 2024
0d585d2
stake check
akshay111meher Oct 24, 2024
c7710a3
can disable matches if required
akshay111meher Oct 24, 2024
7519383
route fixes
akshay111meher Oct 24, 2024
68a20d2
minor fixes
akshay111meher Oct 25, 2024
17fbefd
minor fixes
akshay111meher Oct 25, 2024
77cc5e6
markets response update
akshay111meher Oct 25, 2024
683632c
Delegations
akshay111meher Oct 25, 2024
21bdedf
remove wrong operator name from response
akshay111meher Oct 25, 2024
0c6a9b2
metadata addition in parsers
akshay111meher Oct 26, 2024
3d301d7
Proper deseralize of metadata
akshay111meher Oct 26, 2024
5fb954b
Proper deseralize of metadata
akshay111meher Oct 26, 2024
429b037
add-missing-fields
akshay111meher Oct 26, 2024
6c79a01
fix meta data feneratorw
akshay111meher Oct 26, 2024
4e246c1
update
akshay111meher Oct 26, 2024
fa4e92d
fix meta-view
akshay111meher Oct 26, 2024
789feec
fix request count in market data
akshay111meher Oct 26, 2024
d693fec
fix version conflicts in helper
akshay111meher Oct 28, 2024
4e540ed
remove unwanted packages in ivs
akshay111meher Oct 28, 2024
62477ff
update endpoints
akshay111meher Oct 28, 2024
55e329b
info fixes
akshay111meher Oct 28, 2024
7739850
update
akshay111meher Oct 28, 2024
b0a3f78
fix dec string issue in single markets
akshay111meher Oct 28, 2024
7020099
multiple_generators
Oct 29, 2024
44bb4c8
add impl new to GeneratorConfigModel
akshay111meher Oct 29, 2024
152ba66
Add Kalypso Points
akshay111meher Oct 29, 2024
b6101e6
run time optimisations
akshay111meher Oct 29, 2024
eb4e24b
try workflows
akshay111meher Oct 29, 2024
c60e284
try workflows
akshay111meher Oct 29, 2024
c28ea5e
workflow correction
akshay111meher Oct 29, 2024
9564226
workflow correction
akshay111meher Oct 29, 2024
54772f6
workflow correction
akshay111meher Oct 29, 2024
15714e2
quickstart workflow
akshay111meher Oct 29, 2024
affd512
musl add workflow
akshay111meher Oct 29, 2024
0f1eb90
update resolver
akshay111meher Oct 29, 2024
1bb0041
update resolver
akshay111meher Oct 29, 2024
7b78053
update resolver
akshay111meher Oct 29, 2024
3d01fd1
remove lints from workflow
akshay111meher Oct 29, 2024
c11cabf
workflow adjustments
akshay111meher Oct 29, 2024
3c0c52c
workflow adjustments
akshay111meher Oct 29, 2024
bce4c95
workflow fixes
akshay111meher Oct 29, 2024
9d74dd3
remove-windows-workflows
akshay111meher Oct 29, 2024
d1f9a5a
remove-mac-workflows
akshay111meher Oct 29, 2024
a79b961
separate flows for each os
akshay111meher Oct 29, 2024
e74b84c
separate flows for each os
akshay111meher Oct 29, 2024
1d27c05
separate flows for each os
akshay111meher Oct 29, 2024
2b329b6
separate flows for each os
akshay111meher Oct 29, 2024
9732072
separate flows for each os
akshay111meher Oct 29, 2024
aade731
Mac workflow
akshay111meher Oct 29, 2024
0f910a3
mac and gnu workflow updates
akshay111meher Oct 29, 2024
d373994
windows workflow
akshay111meher Oct 29, 2024
53c5086
arm builds
akshay111meher Oct 29, 2024
5332854
update musl and remove windows
akshay111meher Oct 29, 2024
d00db56
clear un-necessary workflows
akshay111meher Oct 29, 2024
a801fc3
fix multitoken match issue
akshay111meher Oct 29, 2024
db0d62c
minor fixes
akshay111meher Oct 29, 2024
fd1c052
optimization in log processor
akshay111meher Oct 30, 2024
b7a87fd
fixes
akshay111meher Oct 30, 2024
e5d3146
underflow fixes
akshay111meher Oct 30, 2024
f879dfe
min build
akshay111meher Oct 30, 2024
c765a2d
add missing file for min binding
akshay111meher Oct 30, 2024
defee80
adjusted bindings
akshay111meher Oct 30, 2024
0028280
fix de-register generator issues
akshay111meher Nov 1, 2024
9e64219
avoid unwanted unwraps in cache too
akshay111meher Nov 1, 2024
d20a69a
slashing updates
akshay111meher Nov 1, 2024
14aa980
remove elliptic package from ME
akshay111meher Nov 1, 2024
16b7627
add feature in listener to skip input verification, at risk
akshay111meher Nov 1, 2024
1bdd871
fix edge case
akshay111meher Nov 2, 2024
b347f1c
init kalypso-cli
akshay111meher Nov 4, 2024
1d1f5b2
new options kalypso-cli
akshay111meher Nov 4, 2024
0d85b97
Read PCRs for non confidential market
akshay111meher Nov 5, 2024
ded2d63
claim rewards
akshay111meher Nov 5, 2024
0f98929
claim rewards
akshay111meher Nov 5, 2024
08b8f91
claim rewards
akshay111meher Nov 5, 2024
3fd7989
read attestation
akshay111meher Nov 5, 2024
82a49ef
create proof request for non confidential markets
akshay111meher Nov 6, 2024
f49b335
l1Blocknum
Nov 7, 2024
b3f1069
fix claim rewards
akshay111meher Nov 7, 2024
75fec4c
discard request
akshay111meher Nov 8, 2024
941ae0f
fix slashing errors
akshay111meher Nov 8, 2024
53de92e
add whitelisting images
akshay111meher Nov 8, 2024
4ea3b19
add encryption and ivs keys
akshay111meher Nov 8, 2024
5afd851
error logs in add ivs
akshay111meher Nov 8, 2024
d8ba43a
fixes
akshay111meher Nov 8, 2024
50bcdf4
minor updates
akshay111meher Nov 8, 2024
ba2f1a0
Merge L1 Block Number feature
akshay111meher Nov 11, 2024
836d666
read proof beta
akshay111meher Nov 11, 2024
20ebb62
Lex arrange cli operations
akshay111meher Nov 11, 2024
b32352b
Confidential Request Template
akshay111meher Nov 11, 2024
560be2e
confidential market requests
akshay111meher Nov 12, 2024
6342976
Cache fixes, timestamp fixes
akshay111meher Nov 12, 2024
988150b
add option to use l1 block number
akshay111meher Nov 12, 2024
5082696
conditional compile, use_l1_block_numbers
akshay111meher Nov 12, 2024
e6a1db9
basic slasher
akshay111meher Nov 12, 2024
5f6c95b
workflow changes
akshay111meher Nov 12, 2024
7c76a2b
indexer url env
akshay111meher Nov 12, 2024
9ab3a2e
slahser modifications
akshay111meher Nov 12, 2024
b39fc76
fix error log in slasher
akshay111meher Nov 12, 2024
6f885cb
configurable me port
akshay111meher Nov 12, 2024
3aeb85f
config indexer port
akshay111meher Nov 13, 2024
9819676
update
akshay111meher Nov 13, 2024
65afc58
fix left marketplace issue
akshay111meher Nov 13, 2024
a555458
slashing timestamp fix
akshay111meher Nov 13, 2024
a07cd3d
Metadata addition during registration
akshay111meher Nov 13, 2024
085b438
add time search catagory
akshay111meher Nov 14, 2024
471699b
clean expired requests
akshay111meher Nov 14, 2024
936013b
default tags
akshay111meher Nov 20, 2024
a4410cd
reduce cachee times
akshay111meher Nov 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions .github/workflows/workflow_gnu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# .github/workflows/workflow_gnu.yaml

name: Rust CI - GNU

on:
push:
branches: [ "listener-refined", "symbotic-bindings" ]
pull_request:
branches: [ "listener-refined", "symbotic-bindings" ]

jobs:
check:
name: Check (GNU)
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-gnu-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-gnu-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

test:
name: Test Suite (GNU)
runs-on: ubuntu-latest
needs: check

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-gnu-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-gnu-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

- name: Verify Installed Targets
run: rustup target list --installed

- name: Run cargo test
env:
RUST_BACKTRACE: 1
run: cargo test --target x86_64-unknown-linux-gnu
117 changes: 117 additions & 0 deletions .github/workflows/workflow_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# .github/workflows/workflow_macos.yaml

name: Rust CI - macOS

on:
push:
branches: [ "listener-refined", "symbotic-bindings" ]
pull_request:
branches: [ "listener-refined", "symbotic-bindings" ]

jobs:
check:
name: Check (macOS)
runs-on: macos-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install macOS target
run: rustup target add x86_64-apple-darwin

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-macos-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-macos-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

test:
name: Test Suite (macOS)
runs-on: macos-latest
needs: check

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install macOS target
run: rustup target add x86_64-apple-darwin

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-macos-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-macos-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

- name: Verify Installed Targets
run: rustup target list --installed

- name: Run cargo test
env:
RUST_BACKTRACE: 1
run: cargo test --target x86_64-apple-darwin
123 changes: 123 additions & 0 deletions .github/workflows/workflow_musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# .github/workflows/workflow_musl.yaml

name: Rust CI - MUSL

on:
push:
branches: [ "listener-refined", "symbotic-bindings" ]
pull_request:
branches: [ "listener-refined", "symbotic-bindings" ]

jobs:
check:
name: Check (MUSL)
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install musl target
run: rustup target add x86_64-unknown-linux-musl

- name: Install musl-tools
run: sudo apt-get update && sudo apt-get install -y musl-tools

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-musl-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-musl-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

test:
name: Test Suite (MUSL)
runs-on: ubuntu-latest
needs: check

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install musl target
run: rustup target add x86_64-unknown-linux-musl

- name: Install musl-tools
run: sudo apt-get update && sudo apt-get install -y musl-tools

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-

- name: Cache Cargo git index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-musl-${{ hashFiles('**/Cargo.lock') }}-v2
restore-keys: |
${{ runner.os }}-cargo-build-musl-
${{ runner.os }}-cargo-build-

- name: Remove .cargo/config.toml if exists
run: rm -f .cargo/config.toml

- name: Update dependencies
run: cargo update

- name: Verify Installed Targets
run: rustup target list --installed

- name: Run cargo test
env:
RUST_BACKTRACE: 1
run: cargo test --target x86_64-unknown-linux-musl
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Cargo.lock
generator_config*.json
runtime_config*.json
matching_engine_config*.json
matching_engine_config/

integration_checks/ivsCustomData
integration_checks/ivsCustomData/*
Expand All @@ -33,4 +34,7 @@ integration_checks/proverCustomData
integration_checks/proverCustomData/*

test.sh
test_*.sh
test_*.sh

/app
/app/*
Loading
Loading