Skip to content

Commit

Permalink
CI: Create release builds for Apple silicon (ARM)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Jun 16, 2024
1 parent 3a14232 commit 64f90a6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,24 @@ jobs:

build-macos:
runs-on: macos-latest
strategy:
matrix:
include:
- arch: "x86_64"
- arch: "aarch64"
steps:
- uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: "${{ matrix.arch }}-apple-darwin"
- name: Build
run: cargo build --release --target x86_64-apple-darwin --no-default-features --features webpki-roots
run: cargo build --release --target ${{ matrix.arch }}-apple-darwin --no-default-features --features webpki-roots
- uses: actions/upload-artifact@v4
with:
name: "tealdeer-macos-x86_64"
path: "target/x86_64-apple-darwin/release/tldr"
name: "tealdeer-macos-${{ matrix.arch }}"
path: "target/${{ matrix.arch }}-apple-darwin/release/tldr"

build-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -124,6 +130,7 @@ jobs:
- linux-arm-musleabi
- linux-arm-musleabihf
- macos-x86_64
- macos-aarch64
- windows-x86_64-msvc
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 64f90a6

Please sign in to comment.