Skip to content

Commit

Permalink
ci: fix building on macos (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Aug 14, 2024
1 parent 1323693 commit ea37c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ on:
- "Cargo.toml"
- "Cargo.lock"
pull_request:
paths:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"

env:
BINARY: mdbook-catppuccin
Expand Down Expand Up @@ -88,7 +84,7 @@ jobs:
key: ${{ matrix.rust }}

- name: Use Cross
if: matrix.os != 'windows-2022'
if: matrix.os == 'ubuntu-22.04' && matrix.target != ''
run: |
cargo install cross --git https://github.com/cross-rs/cross
echo "CARGO=cross" >> $GITHUB_ENV
Expand All @@ -106,7 +102,7 @@ jobs:

- name: Strip Binary (linux and macos)
if: matrix.build == 'linux-musl' || matrix.build == 'linux-gnu' || matrix.build == 'macos'
run: strip "target/${{ matrix.target }}/release/${{ env.BINARY }}"
run: strip "${{ env.TARGET_DIR }}/release/${{ env.BINARY }}"

- name: Strip Binary (linux-arm)
if: matrix.build == 'linux-arm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
key: ${{ matrix.rust }}

- name: Use Cross
if: matrix.os != 'windows-2022'
if: matrix.os == 'ubuntu-22.04' && matrix.target != ''
run: |
cargo install cross --git https://github.com/cross-rs/cross
echo "CARGO=cross" >> $GITHUB_ENV
Expand All @@ -114,7 +114,7 @@ jobs:

- name: Strip Binary (linux and macos)
if: matrix.build == 'linux-musl' || matrix.build == 'linux-gnu' || matrix.build == 'macos'
run: strip "target/${{ matrix.target }}/release/${{ env.BINARY }}"
run: strip "${{ env.TARGET_DIR }}/release/${{ env.BINARY }}"

- name: Strip Binary (linux-arm)
if: matrix.build == 'linux-arm'
Expand Down

0 comments on commit ea37c03

Please sign in to comment.