Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
211 changes: 106 additions & 105 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,111 +29,112 @@ jobs:
- name: Create release 📜
uses: goreleaser/goreleaser-action@v3.0.0
with:
args: release
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-macos:
name: Build MacOS binary
runs-on: macos-10.15
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Unshallow
run: git fetch --prune --unshallow --tags --force

- name: Set variables
run: |
echo "VERSION=$(git describe --always | sed 's/^v//')" >> $GITHUB_ENV
- name: Setup Go 🧰
uses: actions/setup-go@v3
with:
go-version: 1.23

- name: Build the binary 🏭
run: |
LEDGER_ENABLED=true make build
mv build/bitsongd "build/bitsongd-$VERSION-darwin-amd64"
- name: Upload the artifacts 📤
uses: actions/upload-artifact@v4
with:
name: "darwin-amd64"
path: "build/*darwin*amd64*"

build-linux:
name: Build Linux binaries
runs-on: ubuntu-18.04
strategy:
matrix:
go-arch: ["amd64", "arm64"]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Fetch tags
run: git fetch --prune --unshallow --tags --force

- name: Set variables
run: |
echo "VERSION=$(git describe --always | sed 's/^v//')" >> $GITHUB_ENV
- name: Setup Go 🧰
uses: actions/setup-go@v3
with:
go-version: 1.23

- name: Compute diff 📜
uses: technote-space/get-diff-action@v6.1.0
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Build 🔨
run: |
GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=true make build
mv build/bitsongd "build/bitsongd-$VERSION-linux-${{ matrix.go-arch }}"
- name: Upload the linux/amd64 artifact 📤
uses: actions/upload-artifact@v4
with:
name: "linux-amd64"
path: "build/*linux*amd64*"

- name: Upload the linux/arm64 artifact 📤
uses: actions/upload-artifact@v4
with:
name: "linux-arm64"
path: "build/*linux*arm64*"

build-windows:
name: Build Windows binary
runs-on: windows-latest
steps:
- name: Setting up dependencies
run: |
choco install make
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Fetch tags
run: git fetch --prune --unshallow --tags --force

- name: Set variables
run: |
Add-Content -Path $env:GITHUB_ENV -Value "VERSION=$(git describe --always | sed 's/^v//')"
- name: Setup Go 🧰
uses: actions/setup-go@v3
with:
go-version: 1.23

- name: Build the binary 🏭
run: |
make LEDGER_ENABLED=true build
echo "build/bitsongd-$env:VERSION-$env:COMMIT-windows-amd64.exe"
mv build/bitsongd.exe "build/bitsongd-$env:VERSION-windows-amd64.exe"
- name: Upload the artifacts 📤
uses: actions/upload-artifact@v4
with:
name: "windows-amd64"
path: "build/*windows*amd64*"
# build-macos:
# name: Build MacOS binary
# runs-on: macos-10.15
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v3

# - name: Unshallow
# run: git fetch --prune --unshallow --tags --force

# - name: Set variables
# run: |
# echo "VERSION=$(git describe --always | sed 's/^v//')" >> $GITHUB_ENV
# - name: Setup Go 🧰
# uses: actions/setup-go@v3
# with:
# go-version: 1.23

# - name: Build the binary 🏭
# run: |
# LEDGER_ENABLED=true make build
# mv build/bitsongd "build/bitsongd-$VERSION-darwin-amd64"
# - name: Upload the artifacts 📤
# uses: actions/upload-artifact@v4
# with:
# name: "darwin-amd64"
# path: "build/*darwin*amd64*"

# build-linux:
# name: Build Linux binaries
# runs-on: ubuntu-18.04
# strategy:
# matrix:
# go-arch: ["amd64", "arm64"]
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v3

# - name: Fetch tags
# run: git fetch --prune --unshallow --tags --force

# - name: Set variables
# run: |
# echo "VERSION=$(git describe --always | sed 's/^v//')" >> $GITHUB_ENV
# - name: Setup Go 🧰
# uses: actions/setup-go@v3
# with:
# go-version: 1.23

# - name: Compute diff 📜
# uses: technote-space/get-diff-action@v6.1.0
# id: git_diff
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - name: Build 🔨
# run: |
# GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=true make build
# mv build/bitsongd "build/bitsongd-$VERSION-linux-${{ matrix.go-arch }}"
# - name: Upload the linux/amd64 artifact 📤
# uses: actions/upload-artifact@v4
# with:
# name: "linux-amd64"
# path: "build/*linux*amd64*"

# - name: Upload the linux/arm64 artifact 📤
# uses: actions/upload-artifact@v4
# with:
# name: "linux-arm64"
# path: "build/*linux*arm64*"

# build-windows:
# name: Build Windows binary
# runs-on: windows-latest
# steps:
# - name: Setting up dependencies
# run: |
# choco install make
# - name: Checkout 🛎️
# uses: actions/checkout@v3

# - name: Fetch tags
# run: git fetch --prune --unshallow --tags --force

# - name: Set variables
# run: |
# Add-Content -Path $env:GITHUB_ENV -Value "VERSION=$(git describe --always | sed 's/^v//')"
# - name: Setup Go 🧰
# uses: actions/setup-go@v3
# with:
# go-version: 1.23

# - name: Build the binary 🏭
# run: |
# make LEDGER_ENABLED=true build
# echo "build/bitsongd-$env:VERSION-$env:COMMIT-windows-amd64.exe"
# mv build/bitsongd.exe "build/bitsongd-$env:VERSION-windows-amd64.exe"
# - name: Upload the artifacts 📤
# uses: actions/upload-artifact@v4
# with:
# name: "windows-amd64"
# path: "build/*windows*amd64*"
19 changes: 19 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check for typos

on:
merge_group:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
check-typos:
name: "Spell-check repository source"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run spell-check
uses: crate-ci/typos@master
Loading
Loading