mirror of
https://github.com/Alexandre1a/GoSH.git
synced 2026-03-09 19:19:46 +01:00
Update go.yml
Deleted build. Re added AMD64 into muliarch
This commit is contained in:
parent
9a9d0979de
commit
1f19d9b602
19
.github/workflows/go.yml
vendored
19
.github/workflows/go.yml
vendored
@ -8,22 +8,6 @@ on:
|
|||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: "1.23.5"
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: go build -v ./...
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test -v ./...
|
|
||||||
|
|
||||||
build-multiarch:
|
build-multiarch:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -32,12 +16,13 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.23.5"
|
go-version: "1.24.1"
|
||||||
|
|
||||||
- name: Build binaries for multiple architectures
|
- name: Build binaries for multiple architectures
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
# Linux
|
# Linux
|
||||||
|
GOOS=linux GOARCH=amd64 go build -o dist/gosh-linux-amd64
|
||||||
GOOS=linux GOARCH=arm64 go build -o dist/gosh-linux-arm64
|
GOOS=linux GOARCH=arm64 go build -o dist/gosh-linux-arm64
|
||||||
# macOS
|
# macOS
|
||||||
GOOS=darwin GOARCH=amd64 go build -o dist/gosh-mac-amd64
|
GOOS=darwin GOARCH=amd64 go build -o dist/gosh-mac-amd64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user