Skip to content

Commit

Permalink
Add cgo enabled in go build
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 18, 2023
1 parent e4bb04b commit 37a8a82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
with:
go-version: "^1.20"

# - name: Build backend and deploy to S3
# run: |
# apt-get update && apt-get install -y zip
# GOOS=linux GOARCH=amd64 go build -o main main.go
# zip canopas_serverless_dev.zip main
# aws s3 cp canopas_serverless_dev.zip s3://canopas-dev-lambda-handlers
- name: Build backend and deploy to S3
run: |
apt-get update && apt-get install -y zip
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go
zip canopas_serverless_dev.zip main
aws s3 cp canopas_serverless_dev.zip s3://canopas-dev-lambda-handlers
- name: Deploy cloudformation stack
id: canopas-website-dev-lambda-stack
Expand Down

0 comments on commit 37a8a82

Please sign in to comment.