Repository: shuttle-hq/synth (language: rust)

Issue:
OSX: 0.6.0 build does not contain executable synth binary, 0.5.6 build does
Mac OSX details:
Darwin MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

Example (0.6.0 build):
$ file synth
synth: data
$ ls -l synth*
-rwxr-xr-x@ 1 (userid_masked)  staff  19691080 Oct 18 15:57 synth
-rw-r--r--@ 1 (userid_masked)  staff   3548972 Oct 19 14:43 synth-macos-latest-x86_64.tar.gz

Example (0.5.6 build):
$ file synth
synth: Mach-O 64-bit executable x86_64
$ ls -ld ./synth*
-rwxr-xr-x@ 1 (userid_masked)  staff  19416944 Sep 30 09:36 ./synth
-rw-r--r--@ 1 (userid_masked)  staff   6874126 Oct 19 14:46 ./synth-macos-latest-x86_64.tar.gz

Procedure to replicate:
1) Download 0.6.0 tar.gz file
2) tar xzf synth-macos-latest-x86_64.tar.gz
3) file synth



Discussion / hints:
Thank you very much for bringing this up @billatmakeit. I'm not sure what happened here but I'm looking into it.

Fix patch:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a3d491fa..e9336c81 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -17,7 +17,6 @@ jobs:
       matrix:
         os:
         - ubuntu-latest
-        - macos-10.15
         # Build for these versions to force backward compat with certain
         # toolchains (GLIBC < 2.29 in case of ubuntu-18.04)
         - ubuntu-18.04
@@ -28,7 +27,7 @@ jobs:
         toolchain: nightly
     - id: tag
       uses: dawidd6/action-get-tag@v1
-    - run: cargo +nightly build --release --features telemetry
+    - run: cargo +nightly build --release --features telemetry --bin synth
     - working-directory: target/release
       run: tar -czf synth.tar.gz synth
     - uses: actions/upload-artifact@v2
@@ -36,6 +35,25 @@ jobs:
         name: synth-${{ steps.tag.outputs.tag }}-${{ matrix.os }}-x86_64
         path: target/release/synth.tar.gz
 
+  build-osx:
+    name: build
+    runs-on: macos-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: actions-rs/toolchain@v1
+      with:
+        toolchain: nightly
+    - id: tag
+      uses: dawidd6/action-get-tag@v1
+    - run: cargo +nightly build --release --features telemetry --bin synth
+    - run: sudo /usr/sbin/purge
+    - working-directory: target/release
+      run: tar -czf synth.tar.gz synth
+    - uses: actions/upload-artifact@v2
+      with:
+        name: synth-${{ steps.tag.outputs.tag }}-osx-latest-x86_64
+        path: target/release/synth.tar.gz
+
   build-windows:
     name: build-windows
     runs-on: windows-latest
@@ -51,7 +69,7 @@ jobs:
         run: |
           VERSION=$(cargo metadata --format-version 1 | jq '.packages[] | select (.name == "synth") | .version' -r)
           echo "::set-output name=version::${VERSION}"
-      - run: cargo +nightly build --release --features telemetry
+      - run: cargo +nightly build --release --features telemetry --bin synth
       - id: install-wix
         run: nuget install WiX -Version 3.11.2
       - id: install-cargo-wix
@@ -83,7 +101,7 @@ jobs:
 
   release:
     name: release
-    needs: [ build, build-windows ]
+    needs: [ build, build-osx, build-windows ]
     runs-on: ubuntu-latest
     steps:
     - id: tag


Test patch: