Skip to content

Add v1beta1 Modbus mapper #310

Add v1beta1 Modbus mapper

Add v1beta1 Modbus mapper #310

Workflow file for this run

name: Main CI WorkFlow
on:
push:
branches:
- main
tags:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Verify vendor, do lint
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install dependences
run: sudo apt-get update && sudo apt-get install -y upx-ucl gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabi libc6-dev-armel-cross libva-dev libva-drm2 libx11-dev libvdpau-dev libxext-dev libsdl1.2-dev libxcb1-dev libxau-dev libxdmcp-dev yasm
- name: Install ffmpeg
run: sudo curl -sLO https://ffmpeg.org/releases/ffmpeg-4.1.6.tar.bz2 && tar -jx --strip-components=1 -f ffmpeg-4.1.6.tar.bz2 && ./configure && make && sudo make install
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.39.0
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: make all lint
build:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Multiple build
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install dependences
run: sudo apt-get update && sudo apt-get install -y upx-ucl gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabi libc6-dev-armel-cross libva-dev libva-drm2 libx11-dev libvdpau-dev libxext-dev libsdl1.2-dev libxcb1-dev libxau-dev libxdmcp-dev yasm
- name: Install ffmpeg
run: sudo curl -sLO https://ffmpeg.org/releases/ffmpeg-4.1.6.tar.bz2 && tar -jx --strip-components=1 -f ffmpeg-4.1.6.tar.bz2 && ./configure && make && sudo make install
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: make all build only
docker_build:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Multiple docker image build
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Install dependences
run: sudo apt-get update && sudo apt-get install -y upx-ucl gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabi libc6-dev-armel-cross libva-dev libva-drm2 libx11-dev libvdpau-dev libxext-dev libsdl1.2-dev libxcb1-dev libxau-dev libxdmcp-dev yasm
- name: Install ffmpeg
run: sudo curl -sLO https://ffmpeg.org/releases/ffmpeg-4.1.6.tar.bz2 && tar -jx --strip-components=1 -f ffmpeg-4.1.6.tar.bz2 && ./configure && make && sudo make install
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.39.0
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: make all package