From 0c6395c200f1f29b60335ddb6843f7fc60216ff2 Mon Sep 17 00:00:00 2001 From: Cocoa Date: Thu, 10 Oct 2024 14:06:56 +0100 Subject: [PATCH] only compile and upload current target (#303) Signed-off-by: Cocoa --- .github/workflows/linux-precompile.yml | 8 +++++++- .github/workflows/macos-precompile.yml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-precompile.yml b/.github/workflows/linux-precompile.yml index d0c22a3..9206de9 100644 --- a/.github/workflows/linux-precompile.yml +++ b/.github/workflows/linux-precompile.yml @@ -122,7 +122,13 @@ jobs: mix elixir_make.precompile - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') && matrix.arch == 'x86_64' with: files: | cache/*.tar.gz + + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && matrix.arch != 'x86_64' + with: + files: | + cache/*${{ matrix.arch }}*.tar.gz diff --git a/.github/workflows/macos-precompile.yml b/.github/workflows/macos-precompile.yml index 27323a9..4780bf3 100644 --- a/.github/workflows/macos-precompile.yml +++ b/.github/workflows/macos-precompile.yml @@ -13,6 +13,7 @@ jobs: runs-on: macos-14 env: MIX_ENV: prod + CC_PRECOMPILER_PRECOMPILE_ONLY_LOCAL: "true" strategy: matrix: arch: