99 RELEASE_BIN : jfmt
1010 RELEASE_DIR : artifacts
1111 GITHUB_REF : ' ${{ github.ref }}'
12- MACOS_TARGET : x86_64-apple-darwin
12+ MACOS_AMD64_TARGET : x86_64-apple-darwin
13+ MACOS_ARM64_TARGET : aarch64-apple-darwin
1314 LINUX_AMD64_TARGET : x86_64-unknown-linux-musl
1415 LINUX_ARM64_TARGET : aarch64-unknown-linux-musl
1516
3233 - target : x86_64-apple-darwin
3334 os : macos-latest
3435 rust : stable
36+ - target : aarch64-apple-darwin
37+ os : macos-latest
38+ rust : stable
3539
3640 steps :
3741 - uses : actions/checkout@v4
@@ -118,10 +122,15 @@ jobs:
118122 with :
119123 name : ${{ env.LINUX_ARM64_TARGET }}
120124
121- - name : Download MacOS tarball
125+ - name : Download MacOS amd64 tarball
126+ uses : actions/download-artifact@v4
127+ with :
128+ name : ${{ env.MACOS_AMD64_TARGET }}
129+
130+ - name : Download MacOS arm64 tarball
122131 uses : actions/download-artifact@v4
123132 with :
124- name : ${{ env.MACOS_TARGET }}
133+ name : ${{ env.MACOS_ARM64_TARGET }}
125134
126135 - name : Release Linux amd64 tarball
127136 uses : actions/upload-release-asset@v1
@@ -143,12 +152,22 @@ jobs:
143152 asset_content_type : application/gzip
144153 asset_name : jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_ARM64_TARGET }}.tar.gz
145154
146- - name : Release MacOS tarball
155+ - name : Release MacOS amd 64 tarball
156+ uses : actions/upload-release-asset@v1
157+ env :
158+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
159+ with :
160+ upload_url : ${{ steps.create_release.outputs.upload_url }}
161+ asset_path : ./jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_AMD64_TARGET }}.tar.gz
162+ asset_content_type : application/gzip
163+ asset_name : jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_AMD64_TARGET }}.tar.gz
164+
165+ - name : Release MacOS arm 64 tarball
147166 uses : actions/upload-release-asset@v1
148167 env :
149168 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
150169 with :
151170 upload_url : ${{ steps.create_release.outputs.upload_url }}
152- asset_path : ./jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
171+ asset_path : ./jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz
153172 asset_content_type : application/gzip
154- asset_name : jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
173+ asset_name : jfmt-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz
0 commit comments