Consolidate jobs
Some checks failed
Test and build / Prepare (push) Successful in 1m0s
Test and build / Build (amd64, , linux) (push) Failing after 5s
Test and build / Build (arm, 6, linux) (push) Failing after 6s
Test and build / Build (arm, 7, linux) (push) Failing after 6s

This commit is contained in:
2026-02-23 15:56:37 +01:00
parent a705b747b2
commit 4239570011

View File

@@ -6,23 +6,35 @@ permissions:
contents: read contents: read
jobs: jobs:
test: prepare:
name: Prepare
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - name: Checkout
- uses: actions/setup-go@v6 uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
check-latest: false check-latest: false
#- name: golangci-lint - name: Download modules
# uses: golangci/golangci-lint-action@v9 run: go mod download
# with: - name: Make build directory
# go-version: ${{ matrix.go }} run: mkdir -p build && readlink -f build
# version: v2.6
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Lint
# uses: golangci/golangci-lint-action@v9
# with:
# go-version: ${{ matrix.go }}
# version: v2.6
build: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: prepare
strategy: strategy:
matrix: matrix:
include: include:
@@ -36,15 +48,6 @@ jobs:
goarch: arm goarch: arm
goarm: "7" goarm: "7"
steps: steps:
- name: Debug env
run: env | sort
- name: Checkout
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
check-latest: false
- name: Set target variables - name: Set target variables
run: | run: |
echo "GOOS=${{ matrix.goos }}" >> $GITHUB_ENV echo "GOOS=${{ matrix.goos }}" >> $GITHUB_ENV
@@ -52,10 +55,6 @@ jobs:
if [ -n "${{ matrix.goarm }}" ]; then if [ -n "${{ matrix.goarm }}" ]; then
echo "GOARM=${{ matrix.goarm }}" >> $GITHUB_ENV echo "GOARM=${{ matrix.goarm }}" >> $GITHUB_ENV
fi fi
- name: Download modules
run: go mod download
- name: Make build directory
run: mkdir -p build && readlink -f build
- name: Build - name: Build
run: go build -o build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} . && readlink -f build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} run: go build -o build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} . && readlink -f build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }}
- name: Set up Docker Buildx - name: Set up Docker Buildx