Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 60 additions & 28 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,60 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'

- name: Build
run: go build -v ./...

- name: Test
run: go test -coverprofile="coverage.txt" -v ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Check out pinned Python SDK oracle
uses: actions/checkout@v6
with:
repository: lbryio/lbry-sdk
ref: e7666f489418e96b6d2104974e93915b539235c5
path: .oracle/lbry-sdk

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'

- name: Set up Python oracle
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install Python oracle dependencies
run: python -m pip install PyYAML==6.0.2 docopt==0.6.2

- name: Build
run: go build -v ./...

- name: Test
run: go test -coverprofile="coverage.txt" -v ./...
env:
LBRY_SDK_PATH: ${{ github.workspace }}/.oracle/lbry-sdk
LBRY_ORACLE_PYTHON_VERSION: '3.11'
LBRY_ORACLE_UNICODE_VERSION: '14.0.0'

- name: Build Desktop daemon archives
run: ./scripts/package-desktop.sh dist/desktop

- name: Upload Desktop daemon archives
uses: actions/upload-artifact@v6
with:
name: lbrynet-desktop-daemons
path: |
dist/desktop/lbrynet-linux.zip
dist/desktop/lbrynet-mac.zip
dist/desktop/lbrynet-windows.zip
dist/desktop/SHA256SUMS

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Build and packaging outputs
/dist/
/lbrynet
/lbrynet-*
/lbryd
/lbry-daemon
*.exe
*.test
/coverage.*
*.prof

# Local Go workspace files
/go.work
/go.work.sum
/.oracle/

# Python compatibility-oracle caches
__pycache__/
*.py[cod]
.pytest_cache/

# Daemon runtime state accidentally created in the source tree
*.log
*.sqlite
*.sqlite-shm
*.sqlite-wal

# Temporary files
*.tmp
*~
.DS_Store
Loading
Loading