Skip to content

Commit 0c6395c

Browse files
authored
only compile and upload current target (#303)
Signed-off-by: Cocoa <[email protected]>
1 parent cdc0e6c commit 0c6395c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/linux-precompile.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ jobs:
122122
mix elixir_make.precompile
123123
124124
- uses: softprops/action-gh-release@v1
125-
if: startsWith(github.ref, 'refs/tags/')
125+
if: startsWith(github.ref, 'refs/tags/') && matrix.arch == 'x86_64'
126126
with:
127127
files: |
128128
cache/*.tar.gz
129+
130+
- uses: softprops/action-gh-release@v1
131+
if: startsWith(github.ref, 'refs/tags/') && matrix.arch != 'x86_64'
132+
with:
133+
files: |
134+
cache/*${{ matrix.arch }}*.tar.gz

.github/workflows/macos-precompile.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: macos-14
1414
env:
1515
MIX_ENV: prod
16+
CC_PRECOMPILER_PRECOMPILE_ONLY_LOCAL: "true"
1617
strategy:
1718
matrix:
1819
arch:

0 commit comments

Comments
 (0)