Skip to content

Commit 8db46c4

Browse files
author
victor
committed
Add apple arm64 as target platform
1 parent 897ceba commit 8db46c4

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"GitHub.copilot-chat",
1717
"GitHub.vscode-pull-request-github",
1818
"rust-lang.rust-analyzer",
19-
"dustypomerleau.rust-syntax"
19+
"dustypomerleau.rust-syntax",
20+
"github.vscode-github-actions"
2021
]
2122
}
2223
}

.github/workflows/release.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ env:
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

@@ -32,6 +33,9 @@ jobs:
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

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jfmt"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Víctor Berga <vbergae@users.noreply.github.com>"]
55
edition = "2021"
66
license = "GPL v3"

0 commit comments

Comments
 (0)