Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Jul 13, 2024
1 parent a4e702c commit dbd4edb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
target: x86_64-pc-windows-msvc
use-cross: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down Expand Up @@ -85,12 +85,12 @@ jobs:
target: x86_64-pc-windows-msvc
use-cross: false
steps:
- name: Switch to macOS 13.x SDK
- name: Switch to macOS 14.x SDK
if: matrix.target == 'aarch64-apple-darwin'
run: |
xcodebuild -showsdks
SDKROOT=$(xcrun -sdk macosx13.1 --show-sdk-path)
- uses: actions/checkout@v3
SDKROOT=$(xcrun -sdk macosx14.0 --show-sdk-path)
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down Expand Up @@ -130,13 +130,6 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then
echo "TYPE=tar" >> $GITHUB_ENV
echo "EXTENSION=tar.gz" >> $GITHUB_ENV
for lib in target/${{ matrix.target }}/release/*.so; do
if [ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]; then
aarch64-linux-gnu-strip -s $lib
else
strip -s $lib
fi
done
cp target/${{ matrix.target }}/release/*.so $stage/
fi
if [ "$RUNNER_OS" == "macOS" ]; then
Expand All @@ -145,7 +138,6 @@ jobs:
for lib in target/${{ matrix.target }}/release/*.dylib; do
install_name_tool -id "@rpath/lib${{ env.cratename }}.dylib" $lib
otool -L $lib
strip -ur $lib
done
cp target/${{ matrix.target }}/release/*.dylib $stage/
fi
Expand All @@ -155,7 +147,6 @@ jobs:
cp target/${{ matrix.target }}/release/deps/${{ env.cratename }}.dll.lib target/${{ matrix.target }}/release/deps/${{ env.cratename }}.lib
cp target/${{ matrix.target }}/release/${{ env.cratename }}* $stage/
cp target/${{ matrix.target }}/release/deps/${{ env.cratename }}* $stage/
rm $stage/*.pdb
fi
ls $stage
cd $src
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lonlat_bng"
description = "Convert longitude and latitude coordinates to BNG coordinates, and vice versa"
version = "0.6.34"
version = "0.6.35"
authors = ["Stephan Hügel <urschrei@gmail.com>"]
license = "MIT"
keywords = ["OSGB36", "BNG", "Geo", "ETRS89", "OSTN02", "OSTN15"]
Expand Down Expand Up @@ -35,6 +35,8 @@ doc = true
[profile.release]
lto = true
codegen-units = 1
strip = true

[profile.bench]
lto = true
codegen-units = 1
Expand Down

0 comments on commit dbd4edb

Please sign in to comment.