Skip to content

Commit

Permalink
add Native support for Apple silicon (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmule authored Aug 7, 2023
1 parent cad05e1 commit 399a04d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check

# coverage:
# name: Coverage
# strategy:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
# with:
# command: xtask
# args: coverage


# - name: Upload to codecov.io
# uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
with:
command: xtask
args: clippy

fmt:
name: fmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -137,16 +137,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1

- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --all-features --no-deps --document-private-items
run: cargo doc --workspace --all-features --no-deps --document-private-items
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
name: Dist
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
fail-fast: false
matrix:
build: [x86_64-linux, aarch64-linux, x86_64-macos, x86_64-windows]
build: [x86_64-linux, aarch64-linux, x86_64-macos, aarch64-macos, x86_64-windows]
include:
- build: x86_64-linux
os: ubuntu-20.04
Expand All @@ -34,12 +34,17 @@ jobs:
rust: stable
target: x86_64-apple-darwin
cross: false
- build: aarch64-macos
os: macos-latest
rust: stable
target: aarch64-apple-darwin
cross: false
- build: x86_64-windows
os: windows-2019
rust: stable
target: x86_64-pc-windows-msvc
cross: false


steps:
- name: Checkout sources
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
args: --release --locked --target ${{ matrix.target }}

- name: Strip release binary (linux and macos)
if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos'
if: matrix.build == 'x86_64-linux' || matrix.build == 'x86_64-macos' || matrix.build == 'aarch64-macos'
run: strip "target/${{ matrix.target }}/release/$BIN_NAME"

- name: Strip release binary (arm)
Expand Down Expand Up @@ -106,7 +111,7 @@ jobs:
submodules: false

- uses: actions/download-artifact@v2

- run: ls -al bins-*

- name: Calculate tag name
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ clean-doc: # clean doc folder.
cargo clean --doc

all-validation: test fmt clippy validate-doc ## runs all ci validation.

help: ## Prints help information.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

0 comments on commit 399a04d

Please sign in to comment.