Check versions before building
Run elixir --version
and erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
to ensure that your elixir version is 1.8.2 and your erlang version is 22
HTTP Archives
x86_64 Linux
URL: https://github.com/brexhq/protobuf-elixir/releases/download/v0.8.1-beta.1%2Bbrex-headv3/elixir-protobuf-x86_64-unknown-linux.tar.gz
sha256: b24aae3bd9ecac43f62c3a0eccb63b6d8a77fd854446628fa05704b2bf4912c5
x86_64 macOS
URL: https://github.com/brexhq/protobuf-elixir/releases/download/v0.8.1-beta.1%2Bbrex-headv3/elixir-protobuf-x86_64-apple-darwin.tar.gz
sha256: 740be6b3c90f272b5b8c4b785e86def203e5c31d1600da880a929fdfe6816dff
arm64 macOS
URL: https://github.com/brexhq/protobuf-elixir/releases/download/v0.8.1-beta.1%2Bbrex-headv3/elixir-protobuf-arm64-apple-darwin.tar.gz
sha256: c95361db940527e310de937955a5c3fabf25cbf06a0343e0d37d841a242a1ad4
Build Steps
x86_64 Linux
docker run -v$(pwd):/workout -it elixir:1.8.2-otp-22 bash
Unable to find image 'elixir:1.8.2-otp-22' locally
1.8.2-otp-22: Pulling from library/elixir
4e2befb7f5d1: Pull complete
792af667f626: Pull complete
3e37868ebf66: Pull complete
591fe17e35dd: Pull complete
b9cba6e3073a: Pull complete
96ca62f74cbe: Pull complete
77bc72e7d11c: Pull complete
5c034e5e63c9: Pull complete
2a58aade7318: Pull complete
Digest: sha256:e340dc6b7ae548bbfdcf82c785803046a47fb55ec6c3b9c8b179e3f8c64847ab
Status: Downloaded newer image for elixir:1.8.2-otp-22
root@0462bbe52a0c:/# mix local.hex --force
* creating root/.mix/archives/hex-2.0.6
root@0462bbe52a0c:/# mix escript.install --force github brexhq/protobuf-elixir tag v0.8.1-beta.1+brex-headv3
* Getting new package (https://github.com/brexhq/protobuf-elixir.git)
remote: Enumerating objects: 3248, done.
remote: Counting objects: 100% (344/344), done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 3248 (delta 234), reused 308 (delta 225), pack-reused 2904
Receiving objects: 100% (3248/3248), 741.37 KiB | 3.05 MiB/s, done.
Resolving deltas: 100% (2130/2130), done.
Resolving Hex dependencies...
Resolution completed in 0.016s
New:
jason 1.4.0
* Getting jason (Hex package)
==> jason
Compiling 10 files (.ex)
Generated jason app
==> protobuf
Compiling 45 files (.ex)
Generated protobuf app
Generated escript protoc-gen-elixir with MIX_ENV=prod
* creating /root/.mix/escripts/protoc-gen-elixir
warning: you must append "/root/.mix/escripts" to your PATH if you want to invoke escripts by name
root@0462bbe52a0c:/# mkdir x86_64-unknown-linux
root@0462bbe52a0c:/# cp /root/.mix/escripts/protoc-gen-elixir x86_64-unknown-linux/
root@0462bbe52a0c:/# tar czvf elixir-protobuf-x86_64-unknown-linux.tar.gz x86_64-unknown-linux
x86_64-unknown-linux/
x86_64-unknown-linux/protoc-gen-elixir
root@0462bbe52a0c:/# sha256sum elixir-protobuf-x86_64-unknown-linux.tar.gz
b24aae3bd9ecac43f62c3a0eccb63b6d8a77fd854446628fa05704b2bf4912c5 elixir-protobuf-x86_64-unknown-linux.tar.gz
root@0462bbe52a0c:/# mv elixir-protobuf-x86_64-unknown-linux.tar.gz /workout/
root@0462bbe52a0c:/# exit
exit
x86_64 macOS
wpark@C02GF1ADMD6R ~/b/credit_card (wpark/DEMOSCENE-26-test-new-release)> mix escript.install --force github brexhq/protobuf-elixir tag v0.8.1-beta.1+brex-headv3
* Getting new package (https://github.com/brexhq/protobuf-elixir.git)
remote: Enumerating objects: 3248, done.
remote: Counting objects: 100% (344/344), done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 3248 (delta 234), reused 308 (delta 225), pack-reused 2904
Resolving Hex dependencies...
Resolution completed in 0.016s
New:
jason 1.4.0
* Getting jason (Hex package)
==> jason
Compiling 10 files (.ex)
Generated jason app
==> protobuf
Compiling 45 files (.ex)
Generated protobuf app
Generated escript protoc-gen-elixir with MIX_ENV=prod
* creating /Users/wpark/.mix/escripts/protoc-gen-elixir
warning: you must append "/Users/wpark/.mix/escripts" to your PATH if you want to invoke escripts by name
wpark@C02GF1ADMD6R ~/b/credit_card (wpark/DEMOSCENE-26-test-new-release)> mkdir x86_64-apple-darwin
wpark@C02GF1ADMD6R ~/b/credit_card (wpark/DEMOSCENE-26-test-new-release)> cp /Users/wpark/.mix/escripts/protoc-gen-elixir x86_64-apple-darwin/
wpark@C02GF1ADMD6R ~/b/credit_card (wpark/DEMOSCENE-26-test-new-release)> tar czvf elixir-protobuf-x86_64-apple-darwin.tar.gz x86_64-apple-darwin
a x86_64-apple-darwin
a x86_64-apple-darwin/protoc-gen-elixir
wpark@C02GF1ADMD6R ~/b/credit_card (wpark/DEMOSCENE-26-test-new-release)> sha256sum elixir-protobuf-x86_64-apple-darwin.tar.gz
740be6b3c90f272b5b8c4b785e86def203e5c31d1600da880a929fdfe6816dff elixir-protobuf-x86_64-apple-darwin.tar.gz