Consolidate jobs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user