forked from External/mediamtx
bump Golang to 1.20 (#1602)
This commit is contained in:
parent
5ffe8b2fc4
commit
853fd42e46
9 changed files with 10 additions and 10 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.19"
|
go-version: "1.20"
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.19"
|
go-version: "1.20"
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
sed -i '/gortsplib/d' go.mod
|
sed -i '/gortsplib/d' go.mod
|
||||||
|
|
|
||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -35,6 +35,6 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.19"
|
go-version: "1.20"
|
||||||
|
|
||||||
- run: make test-highlevel-nodocker
|
- run: make test-highlevel-nodocker
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_IMAGE = golang:1.19-alpine3.17
|
BASE_IMAGE = golang:1.20-alpine3.17
|
||||||
LINT_IMAGE = golangci/golangci-lint:v1.50.1
|
LINT_IMAGE = golangci/golangci-lint:v1.50.1
|
||||||
NODE_IMAGE = node:16-alpine3.17
|
NODE_IMAGE = node:16-alpine3.17
|
||||||
RPI32_IMAGE = balenalib/raspberry-pi:bullseye-run
|
RPI32_IMAGE = balenalib/raspberry-pi:bullseye-run
|
||||||
|
|
|
||||||
|
|
@ -563,7 +563,7 @@ go tool pprof -text http://localhost:9999/debug/pprof/profile?seconds=30
|
||||||
|
|
||||||
#### Standard
|
#### Standard
|
||||||
|
|
||||||
Install Go ≥ 1.19, download the repository, open a terminal in it and run:
|
Install Go ≥ 1.20, download the repository, open a terminal in it and run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go build .
|
go build .
|
||||||
|
|
@ -573,7 +573,7 @@ The command will produce the `rtsp-simple-server` binary.
|
||||||
|
|
||||||
#### Raspberry Pi
|
#### Raspberry Pi
|
||||||
|
|
||||||
In case of a Raspberry Pi, the server can be compiled with native support for the Raspberry Pi Camera. Install Go ≥ 1.19, download the repository, open a terminal in it and run:
|
In case of a Raspberry Pi, the server can be compiled with native support for the Raspberry Pi Camera. Install Go ≥ 1.20, download the repository, open a terminal in it and run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd internal/rpicamera/exe
|
cd internal/rpicamera/exe
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19-alpine3.17
|
FROM golang:1.20-alpine3.17
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19-alpine3.17
|
FROM golang:1.20-alpine3.17
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19-alpine3.17
|
FROM golang:1.20-alpine3.17
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/aler9/rtsp-simple-server
|
module github.com/aler9/rtsp-simple-server
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
code.cloudfoundry.org/bytefmt v0.0.0
|
code.cloudfoundry.org/bytefmt v0.0.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue