diff --git a/.goreleaser.yml b/.goreleaser.yml index 92040c3..7398150 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,13 +7,44 @@ before: # you may remove this if you don't need go generate - go generate ./... builds: - - main: ./cmd/lithia + - id: lithia-macos + main: ./cmd/lithia env: - CGO_ENABLED=1 goos: # - linux # - windows - darwin + # requires cross-compiler + # brew install FiloSottile/musl-cross/musl-cross --with-aarch64 + # brew install mingw-w64 + - id: lithia-x-linux-amd64 + main: ./cmd/lithia + env: + - CGO_ENABLED=1 + - CC=x86_64-linux-musl-gcc + goos: + - linux + goarch: + - amd64 + - id: lithia-x-linux-arm64 + main: ./cmd/lithia + env: + - CGO_ENABLED=1 + - CC=aarch64-linux-musl-gcc + goos: + - linux + goarch: + - arm64 + - id: lithia-x-windows-amd64 + main: ./cmd/lithia + env: + - CGO_ENABLED=1 + - CC=x86_64-w64-mingw32-gcc + goos: + - windows + goarch: + - amd64 archives: - replacements: darwin: Darwin diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d54f7..473ca9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.0.11 + +- compiler: binaries for macOS, linux, windows + ## v0.0.10 - stdlib: added `arity` to `prelude.Function` diff --git a/README.md b/README.md index 3acd607..d09bef9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Currently Lithia is an early proof of concept. Basic language features exist, bu - [x] Testing library - [x] Easy installation - [x] Prebuilt docker image -- [ ] Prebuilt linux binaries +- [x] Prebuilt linux binaries - [x] Generated docs for stdlib - [x] Improved performance [#20](https://github.com/vknabel/lithia/pull/20) - [x] Stack traces [#20](https://github.com/vknabel/lithia/pull/20)