Commit Graph

94 Commits

Author SHA1 Message Date
Christian Kamm 450f446032
Make clippy happy (#580) 2023-05-09 21:08:55 +02:00
microwavedcola1 5792731ead rename
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-05-04 16:13:04 +02:00
microwavedcola1 7a2f957d1b
Mc/ci cd (#570)
* prettier

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fix branch

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-05-04 14:16:05 +02:00
riordanp 757a3ee0cc
Use ghcr.io container registry (#549)
* Use ghcr.io container registry

* Update base image urls
2023-04-17 16:57:51 +01:00
riordanp fd4c69b1c2
Add fly deploy scripts (#490) 2023-03-20 14:59:43 +01:00
riordanp fc1341f731
Rename settle-bot to settler, fix build (#492)
* Fix settler build, rename due to heroku not liking '-'

* Temporarily remove ref tag

* Remove temporary branch trigger
2023-03-14 19:10:24 +01:00
riordanp 29f41c275a
Fix docs build job (#501) 2023-03-14 15:07:52 +00:00
Christian Kamm 9a8cb3c7a9
Add idl-compare script to check for binary incompatibilities (#498) 2023-03-09 08:32:59 +01:00
Christian Kamm 305e646262
CI pipeline for verifiable builds (#496) 2023-03-07 17:28:26 +01:00
microwavedcola1 70b65c5880 Fix more paths
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-21 12:10:21 +01:00
microwavedcola1 0eeda22441 Fix path for docker images
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-21 12:05:07 +01:00
Christian Kamm 7b9e19cc08
Organize paths, rename crates (#466)
liquidator, keeper, cli and settle-bot moved to bin/
client moved to lib/client

All crates have a "mango-v4-" prefix
2023-02-20 14:08:38 +01:00
Christian Kamm 7a51ce0619
Add a "settle-bot" binary (#465)
The bot will call settle on all accounts with unsettled pnl where it can
receive either the flat or low-health fee.
2023-02-20 12:09:17 +01:00
Christian Kamm 8916c28b99
License: Mark instructions GPLv3 and everything else MIT (#454)
To do that, split up the Accounts objects and the instruction
implementations.

GPL code is only used when the "enable-gpl" feature is enabled. That
means compiling the program or running tests need explicit feature
activation now.
2023-02-15 08:42:07 +01:00
riordanp 6139c716ba
Add doc generation job (#450)
* Add doc generation job

* Debug cargo doc

* Checkout submodules

* Remove unused build artifacts

* Remove debug commands

* Build on pushes to dev and main
2023-02-13 08:29:50 +01:00
Christian Kamm e65eb79860
CI: Fix soteria action (#443) 2023-02-09 11:28:53 +01:00
silas 5e637c3b79
change 'ci' to 'devops' label (#444) 2023-02-09 10:14:09 +01:00
riordanp e4bcb218a2
Add branch labels to docker images (#441) 2023-02-07 15:48:44 +01:00
silas 3f0ed5978c
ci: add PR labels and combine workflows (#407)
* Automatically labels PRs based on change paths to make it easier to see what is in scope of a PR at a glance
* Merges dependency security scanning into single CI workflows for Rust/TS changes
2023-01-20 13:57:09 +00:00
silas 0da1d5d1ba
Output to security tab (#376) 2023-01-13 16:03:26 +00:00
Christian Kamm 4f0b4da26d
clippy: fix spelling of lint derive_partial_eq_without_eq lint (#377) 2023-01-12 21:40:16 +01:00
microwavedcola1 b4b7085e67
fix clippy (#373)
* fix clippy

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* add clippy whitelist trait

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-01-12 14:26:55 +01:00
silas 143d90ff23
rs CI improvements (#356)
* remove actionrs and add cache

* add rust version check for log

* add back rc version and allow args

* update to vanity address

* resolve merge conflict

Co-authored-by: Christian Kamm <mail@ckamm.de>
2023-01-10 13:35:16 +00:00
Christian Kamm 6cef8caa34
rust client: Make AccountFetcher futures Send (#357)
This required redoing the cached account fetcher logic to properly deal
with locking and repeated calls while a fetch is ongoing.
2023-01-04 16:15:46 +01:00
Christian Kamm 0ed7175341 Upgrade to solana ~1.14.9
- Update anchor submodule
- Fork and submodule switchboard-v2 package to update dep
2022-12-13 17:00:57 +01:00
Riordan Panayides 2b8e976956 Allow manual docker builds 2022-11-05 13:10:34 +00:00
Riordan Panayides fcfb1e8823 Force build 2022-11-05 13:08:03 +00:00
Riordan Panayides 813fc0996a Run docker build on program changes 2022-11-05 13:05:30 +00:00
Riordan Panayides a0cb6be83f Run action on updates 2022-11-04 17:32:06 +00:00
Riordan Panayides 2b694e553f Merge branch 'dev' of github.com:blockworks-foundation/mango-v4 into dev 2022-11-04 17:21:44 +00:00
Riordan Panayides 014953f30a Restrict docker build paths, run build on main 2022-11-04 17:21:38 +00:00
riordanp df1c2782f1
Use cargo-chef for dependency caching in docker build (#278)
* Try cargo chef for caching build deps in docker

* Run docker build on pan/cargo-chef

* Replace before cheffing

* Fix serum_dex conflict

* Only build what's needed and only once

* Fix typo

* Force liquidator rebuild

* Upgrade vulnerable package lz4-sys

* Revert "Force liquidator rebuild"

This reverts commit c169779542.

* Revert "Temporarily run docker build on branch"

This reverts commit 63ee27eb1e.
2022-11-04 14:30:31 +00:00
silas 7ae8d47e82
update versions 2022-10-18 19:44:14 +01:00
silas 384370ed21
add deps scanning for yarn 2022-10-18 19:40:43 +01:00
silas 9f108ab784
add deps scanning for cargo 2022-10-18 19:36:59 +01:00
silas a5e5851dc1
update file name to harmonise 2022-10-18 19:35:15 +01:00
silas 0ee6157dd0
update action versions, paths and naming 2022-10-18 19:34:28 +01:00
silas c46c219448
add typescript review jobs 2022-10-18 19:29:25 +01:00
silas 423ac1f8a9
remove and replace with trivy 2022-10-18 19:27:52 +01:00
riordanp 4919364d67
Fix keeper dockerfile path 2022-08-31 12:52:30 +01:00
riordanp 3cca63c735
Docker CI Improvements (#195)
* Push separate images for binaries to GCR

* Add base image version arg to heroku deployment

* Test docker build

* Try setting mode

* Fix tags

* switch back to dev

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-31 11:37:58 +02:00
Riordan Panayides f94c7c3bed Update trigger branch 2022-08-09 12:14:48 +01:00
riordanp 5af39e7956
Merge branch 'dev' into mc/docker 2022-08-08 20:54:31 +01:00
Riordan Panayides e3d69a588d Remove push trigger 2022-08-08 20:32:32 +01:00
Riordan Panayides 458fea705b Force run 2022-08-08 20:29:10 +01:00
Riordan Panayides dbb1c314da Add ci-docker-heroku-deploy.yml 2022-08-08 20:25:56 +01:00
Riordan Panayides e97e8a085a Remove ci-docker-heroku-deploy.yml 2022-08-08 20:24:24 +01:00
Riordan Panayides a53c061d1f Superficial change to force workflow parsing 2022-08-08 20:20:17 +01:00
Riordan Panayides 4024e76bd0 Fix YAML 2022-08-08 20:15:14 +01:00
Riordan Panayides 442b6a6ff0 Fix yaml 2022-08-08 20:14:07 +01:00