Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ jobs:
run: GOOS=windows GOARCH=amd64 go build -trimpath -o bin/embed-code-windows.exe main.go

- name: Build embed_code.go for Ubuntu
run: GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go
run: >
GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go
&& chmod +x bin/embed-code-linux

- name: Build embed_code.go for MacOS
run: GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go
run: >
GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go
&& chmod +x bin/embed-code-macos

- name: Commit Built Files
uses: EndBug/add-and-commit@v9
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ based on the system where the binary was built.
Run following command to build binaries for macOS, Windows and Ubuntu:
```bash
mkdir -p bin && \
GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go && \
GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go && chmod +x bin/embed-code-macos && \
GOOS=windows GOARCH=amd64 go build -trimpath -o bin/embed-code-windows.exe main.go && \
GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go
GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go && chmod +x bin/embed-code-linux
```

## Development Notes
Expand Down
Loading