Skip to content

Commit

Permalink
Update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
someone235 committed Sep 4, 2024
1 parent 70bcc31 commit 1203403
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/race.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
branch: [ master, latest ]
branch: [master, latest]
name: Race detection on ${{ matrix.branch }}
steps:
- name: Check out code into the Go module directory
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.23

- name: Set scheduled branch name
shell: bash
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ on:
types: [opened, synchronize, edited]

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
os: [ubuntu-latest, macos-latest]
name: Tests, ${{ matrix.os }}
steps:

- name: Fix CRLF on Windows
if: runner.os == 'Windows'
run: git config --global core.autocrlf false
Expand All @@ -33,8 +31,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19

go-version: 1.23

# Source: https://github.com/actions/cache/blob/main/examples.md#go---modules
- name: Go Cache
Expand All @@ -49,16 +46,14 @@ jobs:
shell: bash
run: ./build_and_test.sh -v


stability-test-fast:
runs-on: ubuntu-latest
name: Fast stability tests, ${{ github.head_ref }}
steps:

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.23

- name: Checkout
uses: actions/checkout@v2
Expand All @@ -75,7 +70,6 @@ jobs:
working-directory: stability-tests
run: ./install_and_test.sh


coverage:
runs-on: ubuntu-latest
name: Produce code coverage
Expand All @@ -86,7 +80,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.23

- name: Delete the stability tests from coverage
run: rm -r stability-tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Kaspa is an attempt at a proof-of-work cryptocurrency with instant confirmations

## Requirements

Go 1.18 or later.
Go 1.23 or later.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions cmd/kaspactl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kaspactl is an RPC client for kaspad

## Requirements

Go 1.19 or later.
Go 1.23 or later.

## Installation

Expand Down Expand Up @@ -50,4 +50,4 @@ For example:
$ kaspactl '{"getBlockDagInfoRequest":{}}'
```

For a list of all available requests check out the [RPC documentation](infrastructure/network/netadapter/server/grpcserver/protowire/rpc.md)
For a list of all available requests check out the [RPC documentation](infrastructure/network/netadapter/server/grpcserver/protowire/rpc.md)
2 changes: 1 addition & 1 deletion cmd/kaspactl/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- multistage docker build: stage #1: build stage
FROM golang:1.19-alpine AS build
FROM golang:1.23-alpine AS build

RUN mkdir -p /go/src/github.com/kaspanet/kaspad

Expand Down
7 changes: 4 additions & 3 deletions cmd/kaspaminer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Kaspaminer is a CPU-based miner for kaspad

## Requirements

Go 1.19 or later.
Go 1.23 or later.

## Installation

Expand All @@ -30,7 +30,7 @@ $ go install .
- Kapaminer should now be installed in `$(go env GOPATH)/bin`. If you did
not already add the bin directory to your system path during Go installation,
you are encouraged to do so now.

## Usage

The full kaspaminer configuration options can be seen with:
Expand All @@ -40,6 +40,7 @@ $ kaspaminer --help
```

But the minimum configuration needed to run it is:

```bash
$ kaspaminer --miningaddr=<YOUR_MINING_ADDRESS>
```
```
2 changes: 1 addition & 1 deletion cmd/kaspaminer/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- multistage docker build: stage #1: build stage
FROM golang:1.19-alpine AS build
FROM golang:1.23-alpine AS build

RUN mkdir -p /go/src/github.com/kaspanet/kaspad

Expand Down
2 changes: 1 addition & 1 deletion cmd/kaspawallet/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- multistage docker build: stage #1: build stage
FROM golang:1.18-alpine AS build
FROM golang:1.23-alpine AS build

RUN mkdir -p /go/src/github.com/kaspanet/kaspad

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- multistage docker build: stage #1: build stage
FROM golang:1.19-alpine AS build
FROM golang:1.23-alpine AS build

RUN mkdir -p /go/src/github.com/kaspanet/kaspad

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kaspanet/kaspad

go 1.18
go 1.23

require (
github.com/btcsuite/btcutil v1.0.2
Expand Down
2 changes: 1 addition & 1 deletion stability-tests/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG KASPAMINER_IMAGE
FROM ${KASPAD_IMAGE} as kaspad
FROM ${KASPAMINER_IMAGE} as kaspaminer

FROM golang:1.19-alpine
FROM golang:1.23-alpine

RUN mkdir -p /go/src/github.com/kaspanet/kaspad

Expand Down

0 comments on commit 1203403

Please sign in to comment.