@@ -37,21 +37,18 @@ jobs:
3737 - name : Install dependencies
3838 run : mix deps.get
3939
40- - name : Compile (for native x86_64 tests)
41- run : mix compile
40+ - name : Precompile NIFs (native + cross-compile)
41+ run : |
42+ export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
43+ mkdir -p $ELIXIR_MAKE_CACHE_DIR
44+ MIX_ENV=prod mix elixir_make.precompile
4245
4346 - name : Run tests on x86_64
4447 run : mix test --exclude integration
4548 env :
4649 CLICKHOUSE_HOST : localhost
4750 CLICKHOUSE_PORT : 9000
4851
49- - name : Precompile NIFs (native + cross-compile)
50- run : |
51- export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
52- mkdir -p $ELIXIR_MAKE_CACHE_DIR
53- MIX_ENV=prod mix elixir_make.precompile
54-
5552 - name : Upload artifacts to release
5653 uses : softprops/action-gh-release@v1
5754 if : startsWith(github.ref, 'refs/tags/')
@@ -99,21 +96,18 @@ jobs:
9996 sudo apt-get install -y build-essential cmake libssl-dev
10097 mix deps.get
10198
102- - name : Compile
103- run : mix compile
99+ - name : Precompile NIFs
100+ run : |
101+ export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
102+ mkdir -p $ELIXIR_MAKE_CACHE_DIR
103+ MIX_ENV=prod mix elixir_make.precompile
104104
105105 - name : Run tests on ARM64
106106 run : mix test --exclude integration
107107 env :
108108 CLICKHOUSE_HOST : localhost
109109 CLICKHOUSE_PORT : 9000
110110
111- - name : Precompile NIFs
112- run : |
113- export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
114- mkdir -p $ELIXIR_MAKE_CACHE_DIR
115- MIX_ENV=prod mix elixir_make.precompile
116-
117111 - name : Upload artifacts to release
118112 uses : softprops/action-gh-release@v1
119113 if : startsWith(github.ref, 'refs/tags/')
@@ -191,18 +185,18 @@ jobs:
191185 brew install cmake openssl
192186 mix deps.get
193187
194- - name : Run tests on x86_64 macOS
195- run : mix test --exclude integration
196- env :
197- CLICKHOUSE_HOST : localhost
198- CLICKHOUSE_PORT : 9000
199-
200188 - name : Precompile NIFs
201189 run : |
202190 export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
203191 mkdir -p $ELIXIR_MAKE_CACHE_DIR
204192 MIX_ENV=prod mix elixir_make.precompile
205193
194+ - name : Run tests on x86_64 macOS
195+ run : mix test --exclude integration
196+ env :
197+ CLICKHOUSE_HOST : localhost
198+ CLICKHOUSE_PORT : 9000
199+
206200 - name : Upload artifacts to release
207201 uses : softprops/action-gh-release@v1
208202 if : startsWith(github.ref, 'refs/tags/')
@@ -264,18 +258,18 @@ jobs:
264258 brew install cmake openssl
265259 mix deps.get
266260
267- - name : Run tests on ARM64 macOS
268- run : mix test --exclude integration
269- env :
270- CLICKHOUSE_HOST : localhost
271- CLICKHOUSE_PORT : 9000
272-
273261 - name : Precompile NIFs
274262 run : |
275263 export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
276264 mkdir -p $ELIXIR_MAKE_CACHE_DIR
277265 MIX_ENV=prod mix elixir_make.precompile
278266
267+ - name : Run tests on ARM64 macOS
268+ run : mix test --exclude integration
269+ env :
270+ CLICKHOUSE_HOST : localhost
271+ CLICKHOUSE_PORT : 9000
272+
279273 - name : Upload artifacts to release
280274 uses : softprops/action-gh-release@v1
281275 if : startsWith(github.ref, 'refs/tags/')
0 commit comments