Skip to content

Commit a6b5b82

Browse files
committed
Reorder workflow to test precompiled binaries
Move upload step between precompile and test so tests download and validate the actual precompiled binaries from the draft release that users will receive.
1 parent 8537db0 commit a6b5b82

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/precompile.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ jobs:
4242
mkdir -p $ELIXIR_MAKE_CACHE_DIR
4343
MIX_ENV=prod mix elixir_make.precompile
4444
45-
- name: Run tests on x86_64
46-
run: mix test --exclude integration
47-
env:
48-
CLICKHOUSE_HOST: localhost
49-
CLICKHOUSE_PORT: 9000
50-
5145
- name: Upload artifacts to release
5246
uses: softprops/action-gh-release@v1
5347
if: startsWith(github.ref, 'refs/tags/')
5448
with:
5549
files: cache/*.tar.gz
5650
draft: true
5751

52+
- name: Run tests on x86_64
53+
run: mix test --exclude integration
54+
env:
55+
CLICKHOUSE_HOST: localhost
56+
CLICKHOUSE_PORT: 9000
57+
5858
services:
5959
clickhouse:
6060
image: clickhouse/clickhouse-server:latest
@@ -100,19 +100,19 @@ jobs:
100100
mkdir -p $ELIXIR_MAKE_CACHE_DIR
101101
MIX_ENV=prod mix elixir_make.precompile
102102
103-
- name: Run tests on ARM64
104-
run: mix test --exclude integration
105-
env:
106-
CLICKHOUSE_HOST: localhost
107-
CLICKHOUSE_PORT: 9000
108-
109103
- name: Upload artifacts to release
110104
uses: softprops/action-gh-release@v1
111105
if: startsWith(github.ref, 'refs/tags/')
112106
with:
113107
files: cache/*.tar.gz
114108
draft: true
115109

110+
- name: Run tests on ARM64
111+
run: mix test --exclude integration
112+
env:
113+
CLICKHOUSE_HOST: localhost
114+
CLICKHOUSE_PORT: 9000
115+
116116
services:
117117
clickhouse:
118118
image: clickhouse/clickhouse-server:latest
@@ -189,19 +189,19 @@ jobs:
189189
mkdir -p $ELIXIR_MAKE_CACHE_DIR
190190
MIX_ENV=prod mix elixir_make.precompile
191191
192-
- name: Run tests on x86_64 macOS
193-
run: mix test --exclude integration
194-
env:
195-
CLICKHOUSE_HOST: localhost
196-
CLICKHOUSE_PORT: 9000
197-
198192
- name: Upload artifacts to release
199193
uses: softprops/action-gh-release@v1
200194
if: startsWith(github.ref, 'refs/tags/')
201195
with:
202196
files: cache/*.tar.gz
203197
draft: true
204198

199+
- name: Run tests on x86_64 macOS
200+
run: mix test --exclude integration
201+
env:
202+
CLICKHOUSE_HOST: localhost
203+
CLICKHOUSE_PORT: 9000
204+
205205
# Build and test on macOS Apple Silicon
206206
macos-arm:
207207
name: macOS Apple Silicon (ARM64)
@@ -262,15 +262,15 @@ jobs:
262262
mkdir -p $ELIXIR_MAKE_CACHE_DIR
263263
MIX_ENV=prod mix elixir_make.precompile
264264
265-
- name: Run tests on ARM64 macOS
266-
run: mix test --exclude integration
267-
env:
268-
CLICKHOUSE_HOST: localhost
269-
CLICKHOUSE_PORT: 9000
270-
271265
- name: Upload artifacts to release
272266
uses: softprops/action-gh-release@v1
273267
if: startsWith(github.ref, 'refs/tags/')
274268
with:
275269
files: cache/*.tar.gz
276270
draft: true
271+
272+
- name: Run tests on ARM64 macOS
273+
run: mix test --exclude integration
274+
env:
275+
CLICKHOUSE_HOST: localhost
276+
CLICKHOUSE_PORT: 9000

0 commit comments

Comments
 (0)