CI Fix
This commit is contained in:
@@ -17,48 +17,45 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker build -t go-api-test .
|
docker build -t go-api-test .
|
||||||
|
|
||||||
# compose-test:
|
compose-test:
|
||||||
# name: 🧩 Docker Compose Validation
|
name: Docker Compose Validation
|
||||||
# runs-on: docker-latest
|
runs-on: docker-latest
|
||||||
# # concurrency: docker-runner-2
|
steps:
|
||||||
# steps:
|
- name: Checkout repository
|
||||||
# - name: Checkout repository
|
uses: actions/checkout@v3
|
||||||
# uses: actions/checkout@v3
|
|
||||||
#
|
- name: Validate docker-compose.yml
|
||||||
# - name: Validate docker-compose.yml
|
run: |
|
||||||
# run: |
|
sudo docker-compose config -q
|
||||||
# sudo docker-compose config -q
|
|
||||||
#
|
go-build:
|
||||||
# go-build:
|
name: Go Build & Cross-Compile
|
||||||
# name: 🦦 Go Build & Cross-Compile
|
runs-on: docker-latest
|
||||||
# runs-on: docker-latest
|
steps:
|
||||||
# # concurrency: docker-runner-3
|
- name: Checkout repository
|
||||||
# steps:
|
uses: actions/checkout@v3
|
||||||
# - name: Checkout repository
|
|
||||||
# uses: actions/checkout@v3
|
- name: Check Go version
|
||||||
#
|
run: go version
|
||||||
# - name: Check Go version
|
|
||||||
# run: go version
|
- name: Go Vet (basic static check)
|
||||||
#
|
run: go vet ./...
|
||||||
# - name: Go Vet (basic static check)
|
|
||||||
# run: go vet ./...
|
- name: Build Linux binary
|
||||||
#
|
run: |
|
||||||
# - name: Build Linux binary
|
mkdir -p build
|
||||||
# run: |
|
go build -o build/go-api-linux main.go
|
||||||
# mkdir -p build
|
|
||||||
# go build -o build/go-api-linux main.go
|
- name: Build Windows binary
|
||||||
#
|
run: |
|
||||||
# - name: Build Windows binary
|
GOOS=windows GOARCH=amd64 go build -o build/go-api.exe main.go
|
||||||
# run: |
|
|
||||||
# GOOS=windows GOARCH=amd64 go build -o build/go-api.exe main.go
|
- name: Show build output
|
||||||
#
|
run: ls -lh build
|
||||||
# - name: Show build output
|
|
||||||
# run: ls -lh build
|
- name: Upload build artifacts
|
||||||
#
|
uses: actions/upload-artifact@v3
|
||||||
# - name: Upload build artifacts
|
with:
|
||||||
# uses: actions/upload-artifact@v3
|
name: go-api-binaries
|
||||||
# with:
|
path: build/
|
||||||
# name: go-api-binaries
|
|
||||||
# path: build/
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|||||||
Reference in New Issue
Block a user