forked from External/mediamtx
bump Go to 1.22 (#3279)
This commit is contained in:
parent
6513f05bb6
commit
9e636308d9
5 changed files with 8 additions and 8 deletions
4
.github/workflows/code_lint.yml
vendored
4
.github/workflows/code_lint.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
|
|
||||||
- run: touch internal/servers/hls/hls.min.js
|
- run: touch internal/servers/hls/hls.min.js
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
|
||||||
2
.github/workflows/code_test.yml
vendored
2
.github/workflows/code_test.yml
vendored
|
|
@ -35,6 +35,6 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
|
|
||||||
- run: make test-highlevel-nodocker
|
- run: make test-highlevel-nodocker
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_IMAGE = golang:1.21-alpine3.19
|
BASE_IMAGE = golang:1.22-alpine3.19
|
||||||
LINT_IMAGE = golangci/golangci-lint:v1.56.2
|
LINT_IMAGE = golangci/golangci-lint:v1.56.2
|
||||||
NODE_IMAGE = node:20-alpine3.19
|
NODE_IMAGE = node:20-alpine3.19
|
||||||
ALPINE_IMAGE = alpine:3.19
|
ALPINE_IMAGE = alpine:3.19
|
||||||
|
|
|
||||||
|
|
@ -1992,7 +1992,7 @@ Be aware that RTMPS is currently unsupported by all major players. However, you
|
||||||
|
|
||||||
### Standard
|
### Standard
|
||||||
|
|
||||||
Install git and Go ≥ 1.21. Clone the repository, enter into the folder and start the building process:
|
Install git and Go ≥ 1.22. Clone the repository, enter into the folder and start the building process:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/bluenviron/mediamtx
|
git clone https://github.com/bluenviron/mediamtx
|
||||||
|
|
@ -2007,7 +2007,7 @@ The command will produce the `mediamtx` binary.
|
||||||
|
|
||||||
The server can be compiled with native support for the Raspberry Pi Camera. Compilation must be performed on a Raspberry Pi, with the following dependencies:
|
The server can be compiled with native support for the Raspberry Pi Camera. Compilation must be performed on a Raspberry Pi, with the following dependencies:
|
||||||
|
|
||||||
* Go ≥ 1.21
|
* Go ≥ 1.22
|
||||||
* `libcamera-dev`
|
* `libcamera-dev`
|
||||||
* `libfreetype-dev`
|
* `libfreetype-dev`
|
||||||
* `xxd`
|
* `xxd`
|
||||||
|
|
@ -2050,7 +2050,7 @@ If the OpenWrt device doesn't have enough resources to compile, you can [cross c
|
||||||
|
|
||||||
Cross compilation allows to build an executable for a target machine from another machine with different operating system or architecture. This is useful in case the target machine doesn't have enough resources for compilation or if you don't want to install the compilation dependencies on it.
|
Cross compilation allows to build an executable for a target machine from another machine with different operating system or architecture. This is useful in case the target machine doesn't have enough resources for compilation or if you don't want to install the compilation dependencies on it.
|
||||||
|
|
||||||
On the machine you want to use to compile, install git and Go ≥ 1.21. Clone the repository, enter into the folder and start the building process:
|
On the machine you want to use to compile, install git and Go ≥ 1.22. Clone the repository, enter into the folder and start the building process:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/bluenviron/mediamtx
|
git clone https://github.com/bluenviron/mediamtx
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/bluenviron/mediamtx
|
module github.com/bluenviron/mediamtx
|
||||||
|
|
||||||
go 1.21
|
go 1.22
|
||||||
|
|
||||||
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