Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Standardizes the way we build #87

Merged
merged 4 commits into from
Dec 23, 2021
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
run: brew install webp

- name: Build & test
run: go build . && go test ./...
run: make build && make test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ examples/*.webp
examples/*.gif

# Pixlet Binary
build/out/pixlet
pixlet
4 changes: 2 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Steps
```console
cd pixlet
```
- Build the following directories in order: `/render`, then `/runtime`, then `/encode` and finally `/`:
- Build the binary:
```console
go build render runtime encode .
make build
```
- After that you will have the binary `/pixlet`, which you should copy to your path.

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ test:
go test -v -cover ./...

clean:
rm -rf build/out
rm -f pixlet

bench:
go test -benchmem -benchtime=20s -bench BenchmarkRunAndRender tidbyt.dev/pixlet/encode

build: clean embedfonts
go build -o build/out/pixlet tidbyt.dev/pixlet
build: clean
go build -o pixlet tidbyt.dev/pixlet

embedfonts:
go run render/gen/embedfonts.go