Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53e855a

Browse files
committed
Build assets on linux without CGO for windows
1 parent ecbc9e1 commit 53e855a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@ name: build
22
on: [push]
33

44
jobs:
5-
build:
5+
build_linux:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v1
10+
- name: Build
11+
run: ./ci/steps/build.sh
12+
- name: Upload
13+
uses: actions/upload-artifact@v2
14+
with:
15+
name: coder-cli-linuxbuild
16+
path: ./ci/bin/coder-cli-*
17+
build_macos:
618
runs-on: macos-latest
719
steps:
820
- name: Checkout
@@ -24,5 +36,5 @@ jobs:
2436
- name: Upload
2537
uses: actions/upload-artifact@v2
2638
with:
27-
name: coder-cli
39+
name: coder-cli-macosbuild
2840
path: ./ci/bin/coder-cli-*

ci/steps/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ else
5858
fi
5959

6060
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 build
61-
GOOS=windows GOARCH=386 build
61+
CGO_ENABLED=0 GOOS=windows GOARCH=386 build

0 commit comments

Comments
 (0)