Skip to content

Commit

Permalink
fix(ci): remove duplication and fix extensions
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Apr 11, 2024
1 parent c2ec461 commit ea27f25
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions rust/pact_ffi/release-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,12 @@ build_x86_64() {
cargo build --target x86_64-apple-darwin "${cargo_flags[@]}"

if [[ "${cargo_flags[*]}" =~ "--release" ]]; then
gzip_and_sum \
"$CARGO_TARGET_DIR/x86_64-apple-darwin/release/libpact_ffi.dylib" \
"$ARTIFACTS_DIR/libpact_ffi-osx-x86_64.dylib.gz"
gzip_and_sum \
"$CARGO_TARGET_DIR/x86_64-apple-darwin/release/libpact_ffi.a" \
"$ARTIFACTS_DIR/libpact_ffi-osx-x86_64.a"
gzip_and_sum \
"$CARGO_TARGET_DIR/x86_64-apple-darwin/release/libpact_ffi.dylib" \
"$ARTIFACTS_DIR/libpact_ffi-macos-x86_64.dylib.gz"
gzip_and_sum \
"$CARGO_TARGET_DIR/x86_64-apple-darwin/release/libpact_ffi.a" \
"$ARTIFACTS_DIR/libpact_ffi-macos-x86_64.a"
"$ARTIFACTS_DIR/libpact_ffi-macos-x86_64.a.gz"
fi
}

Expand All @@ -41,18 +35,12 @@ build_aarch64() {
cargo build --target aarch64-apple-darwin "${cargo_flags[@]}"

if [[ "${cargo_flags[*]}" =~ "--release" ]]; then
gzip_and_sum \
"$CARGO_TARGET_DIR/aarch64-apple-darwin/release/libpact_ffi.dylib" \
"$ARTIFACTS_DIR/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz"
gzip_and_sum \
"$CARGO_TARGET_DIR/aarch64-apple-darwin/release/libpact_ffi.a" \
"$ARTIFACTS_DIR/libpact_ffi-osx-aarch64-apple-darwin.a"
gzip_and_sum \
"$CARGO_TARGET_DIR/aarch64-apple-darwin/release/libpact_ffi.dylib" \
"$ARTIFACTS_DIR/libpact_ffi-macos-aarch64-apple-darwin.dylib.gz"
gzip_and_sum \
"$CARGO_TARGET_DIR/aarch64-apple-darwin/release/libpact_ffi.a" \
"$ARTIFACTS_DIR/libpact_ffi-macos-aarch64-apple-darwin.a"
"$ARTIFACTS_DIR/libpact_ffi-macos-aarch64-apple-darwin.a.gz"
fi
}

Expand Down

0 comments on commit ea27f25

Please sign in to comment.