From a3040a5e210805696d13cc9477aaaf42125f9c8c Mon Sep 17 00:00:00 2001 From: Cocoa Date: Thu, 10 Oct 2024 13:44:06 +0100 Subject: [PATCH 1/2] only compile current macOS target Signed-off-by: Cocoa --- .github/workflows/macos-precompile.yml | 1 + 1 file changed, 1 insertion(+) 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: From c73aaf15395fc47bcf245ae0263e2656a403ef2d Mon Sep 17 00:00:00 2001 From: Cocoa Date: Thu, 10 Oct 2024 13:49:45 +0100 Subject: [PATCH 2/2] only upload precompiled binaries for current target Signed-off-by: Cocoa --- .github/workflows/linux-precompile.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-precompile.yml b/.github/workflows/linux-precompile.yml index 62b6b62..9fd4a0c 100644 --- a/.github/workflows/linux-precompile.yml +++ b/.github/workflows/linux-precompile.yml @@ -70,7 +70,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