diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cbe7d38..0d16534 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,6 +15,7 @@ jobs: strategy: matrix: systems: + # we also use this for x86_64-darwin - nix-system: aarch64-darwin runner: macos-15 system: ARM64-macOS diff --git a/.github/workflows/release-branches.yaml b/.github/workflows/release-branches.yaml index c630735..9a9992c 100644 --- a/.github/workflows/release-branches.yaml +++ b/.github/workflows/release-branches.yaml @@ -26,6 +26,14 @@ jobs: - name: Create the artifacts directory run: rm -rf ./artifacts && mkdir ./artifacts + # x86_64-darwin (uses the aarch64-darwin build) + - uses: actions/download-artifact@v4.1.7 + with: + name: flake-checker-ARM64-macOS + path: cache-binary-X64-macOS + - name: Persist the cache binary + run: cp ./cache-binary-X64-macOS/flake-checker ./artifacts/X64-macOS + - uses: actions/download-artifact@v4.1.7 with: name: flake-checker-ARM64-macOS diff --git a/.github/workflows/release-prs.yaml b/.github/workflows/release-prs.yaml index 998e918..de4ea14 100644 --- a/.github/workflows/release-prs.yaml +++ b/.github/workflows/release-prs.yaml @@ -35,6 +35,14 @@ jobs: - name: Create the artifacts directory run: rm -rf ./artifacts && mkdir ./artifacts + # x86_64-darwin (uses the aarch64-darwin build) + - uses: actions/download-artifact@v4.1.7 + with: + name: flake-checker-ARM64-macOS + path: cache-binary-X64-macOS + - name: Persist the cache binary + run: cp ./cache-binary-X64-macOS/flake-checker ./artifacts/X64-macOS + - uses: actions/download-artifact@v4.1.7 with: name: flake-checker-ARM64-macOS diff --git a/.github/workflows/release-tags.yaml b/.github/workflows/release-tags.yaml index 7e75346..c7405ee 100644 --- a/.github/workflows/release-tags.yaml +++ b/.github/workflows/release-tags.yaml @@ -24,6 +24,14 @@ jobs: - name: Create the artifacts directory run: rm -rf ./artifacts && mkdir ./artifacts + # x86_64-darwin (uses the aarch64-darwin build) + - uses: actions/download-artifact@v4.1.7 + with: + name: flake-checker-ARM64-macOS + path: cache-binary-X64-macOS + - name: Persist the cache binary + run: cp ./cache-binary-X64-macOS/flake-checker ./artifacts/X64-macOS + - uses: actions/download-artifact@v4.1.7 with: name: flake-checker-ARM64-macOS @@ -55,6 +63,7 @@ jobs: - name: Rename binaries for GH release run: | + mv ./artifacts/{,flake-checker-}X64-macOS mv ./artifacts/{,flake-checker-}ARM64-macOS mv ./artifacts/{,flake-checker-}X64-Linux mv ./artifacts/{,flake-checker-}ARM64-Linux