Skip to content

Commit

Permalink
feat: switch to sqlite instead of json for state persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
neriumrevolta committed Dec 5, 2023
1 parent 16e6892 commit 0e7e083
Show file tree
Hide file tree
Showing 56 changed files with 3,566 additions and 2,354 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
REGISTRY: ghcr.io
BASE_NAME: graphops/subgraph-radio
SQLX_OFFLINE: true

jobs:
build-linux:
Expand Down
26 changes: 3 additions & 23 deletions .github/workflows/gen-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

env:
SQLX_OFFLINE: true

jobs:
build-linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,26 +39,3 @@ jobs:
asset_path: ./target/release/subgraph-radio
asset_name: subgraph-radio-${{ github.event.release.tag_name }}-ubuntu
asset_content_type: binary/octet-stream
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/setup-go@v4
with:
go-version: "1.19.5"
- name: Build release binary
run: |
cargo build --release
- name: Upload MacOS binary
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/release/subgraph-radio
asset_name: subgraph-radio-${{ github.event.release.tag_name }}-macos
asset_content_type: binary/octet-stream
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI

on:
push:
branches: [main, dev]
pull_request_review:
types: [submitted]

name: CI
env:
SQLX_OFFLINE: true

jobs:
check:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ boot_node_addr.conf
data
*.swp
.vscode
*.json
.DS_Store
configs
*.sqlite*

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e7e083

Please sign in to comment.