15 Commits

Author SHA1 Message Date
b8bdaa95c5 bump version to v0.8.5 and update workflow build flags
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- pkg/version/version
  - Updated version from `v0.8.4` to `v0.8.5`.

- .github/workflows/go.yml
  - Updated `CGO_ENABLED` flag from `1` to `0` for Linux ARM64 builds.
2025-08-17 20:29:31 +01:00
710f88d03f bump version to v0.8.3 and update workflow build flags
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- pkg/version/version
  - Updated version from v0.8.2 to v0.8.3.

- .github/workflows/go.yml
  - Removed `--ldflags '-extldflags "-static"'` from Linux builds for amd64 and arm64 architectures.
2025-08-17 18:27:41 +01:00
66be769f7a Add support for expiration indexing and event deletion
- pkg/database/database.go
  - Added `RunMigrations` to handle new index versions.
  - Integrated `DeleteExpired` for scheduled cleanup of expired events within a goroutine.

- pkg/database/delete-event.go
  - Refactored the existing deletion logic into `DeleteEventBySerial`.

- pkg/database/delete-expired.go
  - Added new implementation to handle deletion of expired events using expiration indexes.

- pkg/database/migrations.go
  - Implemented `RunMigrations` to handle database versioning and reindexing when new keys are introduced.

- pkg/database/indexes/keys.go
  - Added `ExpirationPrefix` and `VersionPrefix` for new expiration and version indexes.
  - Implemented encoding structs for expiration and version handling.

- pkg/encoders/event/writer.go
  - Added JSON marshaling logic to serialize events with or without whitespace.

- pkg/encoders/event/reader.go
  - Refined unmarshaling logic for handling event keys and values robustly.

- pkg/protocol/socketapi/handleEvent.go
  - Formatted log statements and updated logging verbosity for event handling.

- pkg/app/relay/handleRelayinfo.go
  - Re-enabled relay handling for expiration timestamps.

- pkg/database/indexes/types.go (new file)
  - Introduced structures for `Uint40s` and other types used in indexes.
2025-08-15 15:50:31 +01:00
b6670d952d Remove pull_request trigger from GitHub Actions workflow
- .github/workflows/go.yml
  - Removed the `pull_request` event trigger.
  - Removed branch filtering for the `push` event.
2025-08-08 10:19:58 +01:00
7d4f90f0de Enable CGO for Linux builds and bump version to v0.6.0
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- .github/workflows/go.yml
  - Updated `CGO_ENABLED` to 1 for Linux builds (amd64 and arm64).

- pkg/version/version
  - Updated version from v0.5.9 to v0.6.0.
2025-08-08 10:03:32 +01:00
667890561a Update release workflow dependencies and bump version to v0.5.9
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- .github/workflows/go.yml
  - Added `needs: build` dependency to the `release` job.

- pkg/version/version
  - Updated version from v0.5.8 to v0.5.9.
2025-08-08 09:49:23 +01:00
85fe316fdb Update GitHub Actions release workflow and bump version to v0.5.8
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- .github/workflows/go.yml
  - Updated repository `permissions` from `contents: read` to `contents: write`.
  - Fixed misaligned spaces in `go build` commands for release binaries.
  - Corrected `go build` syntax for cmd executables.

- pkg/version/version
  - Updated version from v0.5.7 to v0.5.8.
2025-08-08 09:45:15 +01:00
1535f10343 Add release process and bump version to v0.5.7
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
- .github/workflows/go.yml
  - Added a new `release` job with steps to set up Go, install `libsecp256k1`, and build release binaries.

- pkg/version/version
  - Updated version from v0.5.6 to v0.5.7.

- pkg/protocol/ws/pool_test.go
  - Commented out the `TestPoolContextCancellation` test function.
2025-08-08 09:37:28 +01:00
dd80cc767d Add release process to GitHub Actions and bump version to v0.5.6
Some checks failed
Go / build (push) Has been cancelled
- .github/workflows/go.yml
  - Added detailed steps for the release process, including tagging and pushing.
  - Included logic to build release binaries for multiple platforms.
  - Configured process for checksum generation and GitHub release creation.

- pkg/version/version
  - Updated version from v0.5.5 to v0.5.6.
2025-08-08 09:22:54 +01:00
e929c09476 Update GitHub Actions workflow to include libsecp256k1 setup and cgo tests
- .github/workflows/go.yml
  - Added a step to install `libsecp256k1` using `ubuntu_install_libsecp256k1.sh`.
  - Updated steps to build and test with cgo enabled.
  - Added a step to explicitly set `CGO_ENABLED=0` in the environment.
2025-08-08 08:47:02 +01:00
8d61b8e44c Fix incorrect syntax in environment variable setup in go.yml
- .github/workflows/go.yml
  - Corrected syntax for appending `CGO_ENABLED=0` to `$GITHUB_ENV`.
2025-08-07 21:26:30 +01:00
19e265bf39 Remove test-and-release workflow and add environment variable to go.yml
- .github/workflows/test-and-release.yml
  - Deleted the test-and-release GitHub Actions workflow entirely.

- .github/workflows/go.yml
  - Added a new step to set `CGO_ENABLED=0` environment variable.
2025-08-07 21:25:37 +01:00
9020bb8164 Update Go version in GitHub Actions workflows to 1.24
- .github/workflows/go.yml
  - Updated `go-version` from 1.20 to 1.24.

- .github/workflows/test-and-release.yml
  - Updated `go-version` from 1.22 to 1.24 in two workflow steps.
2025-08-07 20:54:59 +01:00
3fe4537cd9 Create go.yml 2025-08-07 20:50:32 +01:00
7ec8698b62 Bump version to v0.5.4 and add GitHub Actions workflow
Some checks failed
Test and Release / test (push) Has been cancelled
Test and Release / release (push) Has been cancelled
- pkg/version/version
  - Updated version from v0.5.3 to v0.5.4

- .github/workflows/test-and-release.yml
  - Added a new workflow for testing and releasing:
    - Runs tests on `push` for version tags and `pull_request` on `main`
    - Builds binaries for Linux, macOS, and Windows
    - Creates GitHub releases upon valid version tags
    - Uploads release assets
2025-08-07 20:48:26 +01:00