diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8bab1c..8ec3f37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,10 +20,6 @@ on: - "Cargo.toml" - "Cargo.lock" pull_request: - paths: - - "src/**" - - "Cargo.toml" - - "Cargo.lock" env: BINARY: mdbook-catppuccin @@ -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 @@ -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' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4ebfa8..ec5381d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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'