From 878d1b9b8791435865210f5fb868b0c649a2da62 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 10:48:55 +0200 Subject: [PATCH 1/8] prepared release assets --- .github/workflows/libserum.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 9f86106..48fdd54 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -110,3 +110,15 @@ jobs: with: name: libserum-${{ needs.version.outputs.tag }}-macOS path: tmp + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + libserum-${{ needs.version.outputs.tag }}-win-x64 + libserum-${{ needs.version.outputs.tag }}-win-x86 + libserum-${{ needs.version.outputs.tag }}-ios-arm64 + libserum-${{ needs.version.outputs.tag }}-tvos-arm64 + libserum-${{ needs.version.outputs.tag }}-linux-x64 + libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a + libserum-${{ needs.version.outputs.tag }}-macOS From 99460a5284fafb07139ee40824411d186fb8be70 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 10:55:23 +0200 Subject: [PATCH 2/8] fixed macOS path --- .github/workflows/libserum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 48fdd54..7b25657 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -121,4 +121,4 @@ jobs: libserum-${{ needs.version.outputs.tag }}-tvos-arm64 libserum-${{ needs.version.outputs.tag }}-linux-x64 libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a - libserum-${{ needs.version.outputs.tag }}-macOS + tmp/libserum-${{ needs.version.outputs.tag }}-macOS From ad6ade9279206d3de278e30a72331959070c4766 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:01:18 +0200 Subject: [PATCH 3/8] mark auto releases as draft --- .github/workflows/libserum.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 7b25657..3418673 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -114,6 +114,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + draft: true files: | libserum-${{ needs.version.outputs.tag }}-win-x64 libserum-${{ needs.version.outputs.tag }}-win-x86 From 0142d08bbb9dc2a01e68d19d486016923eacd88c Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:15:19 +0200 Subject: [PATCH 4/8] uses zip for release files --- .github/workflows/libserum.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 3418673..da16301 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -110,16 +110,27 @@ jobs: with: name: libserum-${{ needs.version.outputs.tag }}-macOS path: tmp + - name: Package + if: startsWith(github.ref, 'refs/tags/') + - run: | + zip libserum-${{ needs.version.outputs.tag }}-win-x64 + zip libserum-${{ needs.version.outputs.tag }}-win-x86 + zip libserum-${{ needs.version.outputs.tag }}-ios-arm64 + zip libserum-${{ needs.version.outputs.tag }}-tvos-arm64 + zip libserum-${{ needs.version.outputs.tag }}-linux-x64 + zip libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a + mv tmp/libserum-${{ needs.version.outputs.tag }}-macOS libserum-${{ needs.version.outputs.tag }}-macOS + zip libserum-${{ needs.version.outputs.tag }}-macOS - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: draft: true files: | - libserum-${{ needs.version.outputs.tag }}-win-x64 - libserum-${{ needs.version.outputs.tag }}-win-x86 - libserum-${{ needs.version.outputs.tag }}-ios-arm64 - libserum-${{ needs.version.outputs.tag }}-tvos-arm64 - libserum-${{ needs.version.outputs.tag }}-linux-x64 - libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a - tmp/libserum-${{ needs.version.outputs.tag }}-macOS + libserum-${{ needs.version.outputs.tag }}-win-x64.zip + libserum-${{ needs.version.outputs.tag }}-win-x86.zip + libserum-${{ needs.version.outputs.tag }}-ios-arm64.zip + libserum-${{ needs.version.outputs.tag }}-tvos-arm64.zip + libserum-${{ needs.version.outputs.tag }}-linux-x64.zip + libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a.zip + libserum-${{ needs.version.outputs.tag }}-macOS.zip From 97a1ca3566a7438f11c98d0e1ee9704d3257a9d3 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:17:07 +0200 Subject: [PATCH 5/8] fixed indention --- .github/workflows/libserum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index da16301..cd352ea 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -112,7 +112,7 @@ jobs: path: tmp - name: Package if: startsWith(github.ref, 'refs/tags/') - - run: | + - run: | zip libserum-${{ needs.version.outputs.tag }}-win-x64 zip libserum-${{ needs.version.outputs.tag }}-win-x86 zip libserum-${{ needs.version.outputs.tag }}-ios-arm64 From 58775780359504c6efd413c2aba9e96ebb91fbdb Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:19:31 +0200 Subject: [PATCH 6/8] fixed Package --- .github/workflows/libserum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index cd352ea..3cc6eac 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -112,7 +112,7 @@ jobs: path: tmp - name: Package if: startsWith(github.ref, 'refs/tags/') - - run: | + run: | zip libserum-${{ needs.version.outputs.tag }}-win-x64 zip libserum-${{ needs.version.outputs.tag }}-win-x86 zip libserum-${{ needs.version.outputs.tag }}-ios-arm64 From 5fd66a4a205671135435280704cf50754e5bf9b7 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:30:35 +0200 Subject: [PATCH 7/8] zip --- .github/workflows/libserum.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 3cc6eac..8f4b130 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -113,14 +113,14 @@ jobs: - name: Package if: startsWith(github.ref, 'refs/tags/') run: | - zip libserum-${{ needs.version.outputs.tag }}-win-x64 - zip libserum-${{ needs.version.outputs.tag }}-win-x86 - zip libserum-${{ needs.version.outputs.tag }}-ios-arm64 - zip libserum-${{ needs.version.outputs.tag }}-tvos-arm64 - zip libserum-${{ needs.version.outputs.tag }}-linux-x64 - zip libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a + zip -r libserum-${{ needs.version.outputs.tag }}-win-x64.zip libserum-${{ needs.version.outputs.tag }}-win-x64 + zip -r libserum-${{ needs.version.outputs.tag }}-win-x86.zip libserum-${{ needs.version.outputs.tag }}-win-x86 + zip -r libserum-${{ needs.version.outputs.tag }}-ios-arm64.zip libserum-${{ needs.version.outputs.tag }}-ios-arm64 + zip -r libserum-${{ needs.version.outputs.tag }}-tvos-arm64.zip libserum-${{ needs.version.outputs.tag }}-tvos-arm64 + zip -r libserum-${{ needs.version.outputs.tag }}-linux-x64.zip libserum-${{ needs.version.outputs.tag }}-linux-x64 + zip -r libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a.zip libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a mv tmp/libserum-${{ needs.version.outputs.tag }}-macOS libserum-${{ needs.version.outputs.tag }}-macOS - zip libserum-${{ needs.version.outputs.tag }}-macOS + zip -r libserum-${{ needs.version.outputs.tag }}-macOS.zip libserum-${{ needs.version.outputs.tag }}-macOS - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') From ff92d211995dbc99b809946ad2bc682d0f1399db Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Fri, 31 Mar 2023 11:52:12 +0200 Subject: [PATCH 8/8] fixed macOS zip --- .github/workflows/libserum.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/libserum.yml b/.github/workflows/libserum.yml index 8f4b130..7020fea 100644 --- a/.github/workflows/libserum.yml +++ b/.github/workflows/libserum.yml @@ -102,14 +102,14 @@ jobs: steps: - uses: actions/download-artifact@v3 - run: | - mkdir tmp - lipo -create -output tmp/libserum.dylib \ + mkdir libserum-${{ needs.version.outputs.tag }}-macOS + lipo -create -output libserum-${{ needs.version.outputs.tag }}-macOS/libserum.dylib \ libserum-${{ needs.version.outputs.tag }}-macOS-x64/libserum.dylib \ libserum-${{ needs.version.outputs.tag }}-macOS-arm64/libserum.dylib - uses: actions/upload-artifact@v3 with: name: libserum-${{ needs.version.outputs.tag }}-macOS - path: tmp + path: libserum-${{ needs.version.outputs.tag }}-macOS - name: Package if: startsWith(github.ref, 'refs/tags/') run: | @@ -119,7 +119,6 @@ jobs: zip -r libserum-${{ needs.version.outputs.tag }}-tvos-arm64.zip libserum-${{ needs.version.outputs.tag }}-tvos-arm64 zip -r libserum-${{ needs.version.outputs.tag }}-linux-x64.zip libserum-${{ needs.version.outputs.tag }}-linux-x64 zip -r libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a.zip libserum-${{ needs.version.outputs.tag }}-android-arm64-v8a - mv tmp/libserum-${{ needs.version.outputs.tag }}-macOS libserum-${{ needs.version.outputs.tag }}-macOS zip -r libserum-${{ needs.version.outputs.tag }}-macOS.zip libserum-${{ needs.version.outputs.tag }}-macOS - name: Release uses: softprops/action-gh-release@v1