Skip to content

Commit

Permalink
improved go compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Binozo committed Dec 17, 2023
1 parent 1babc1c commit 2f84029
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Push Docker image
run: docker push ghcr.io/binozo/echogosdkcompiler:latest
run: docker push ghcr.io/binozo/echogosdkcompiler:latest

- name: Build the Go compiler image
run: docker build -t ghcr.io/binozo/echogo:latest .

- name: Push Go compiler image
run: docker push ghcr.io/binozo/echogo:latest
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM echogosdkcompiler:latest
FROM ghcr.io/binozo/echogosdkcompiler:latest

# Compile our stuff
WORKDIR /EchoGoSDK
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .

# Configured for Echo Dot 2. Gen
CMD env GOOS=android GOARCH=arm GOARM=7 CGO_ENABLED=1 go build -o build/main cmd/main.go
2 changes: 1 addition & 1 deletion compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To build the compiler execute the following:
```dockerfile
docker build --tag echogosdkcompiler:latest .
docker build --tag ghcr.io/binozo/echogosdkcompiler:latest .
```

0 comments on commit 2f84029

Please sign in to comment.