Skip to content

Commit b2429fc

Browse files
committed
fix actions
1 parent 7d6f6c4 commit b2429fc

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ jobs:
1616
- os: ubuntu-latest
1717
ruby-platform: x86_64-linux
1818
rust-target: x86_64-unknown-linux-gnu
19-
- os: ubuntu-latest
20-
ruby-platform: aarch64-linux
21-
rust-target: aarch64-unknown-linux-gnu
22-
use-cross: true
23-
- os: macos-15
24-
ruby-platform: x86_64-darwin
25-
rust-target: x86_64-apple-darwin
26-
- os: macos-14
27-
ruby-platform: arm64-darwin
28-
rust-target: aarch64-apple-darwin
2919

3020
steps:
3121
- uses: actions/checkout@v6
@@ -48,9 +38,9 @@ jobs:
4838
- name: Build CLI binary
4939
run: |
5040
if [ "${{ matrix.use-cross }}" = "true" ]; then
51-
cd ext && cross build --release --features cli --bin methodray-cli --target ${{ matrix.rust-target }}
41+
cd rust && cross build --release --features cli --bin methodray --target ${{ matrix.rust-target }}
5242
else
53-
cd ext && cargo build --release --features cli --bin methodray-cli --target ${{ matrix.rust-target }}
43+
cd rust && cargo build --release --features cli --bin methodray --target ${{ matrix.rust-target }}
5444
fi
5545
5646
- name: Build FFI extension
@@ -66,18 +56,18 @@ jobs:
6656
mkdir -p lib/methodray
6757
# Copy CLI binary
6858
if [[ "${{ matrix.rust-target }}" == *"windows"* ]]; then
69-
cp target/${{ matrix.rust-target }}/release/methodray-cli.exe lib/methodray/
59+
cp rust/target/release/methodray.exe lib/methodray/methodray-cli.exe
7060
else
71-
cp target/${{ matrix.rust-target }}/release/methodray-cli lib/methodray/
61+
cp rust/target/release/methodray lib/methodray/methodray-cli
7262
fi
7363
chmod 755 lib/methodray/methodray-cli* || true
7464
# Copy FFI extension
7565
case "${{ matrix.ruby-platform }}" in
7666
*-darwin)
77-
cp target/${{ matrix.rust-target }}/release/libmethodray.dylib lib/methodray/methodray.bundle
67+
cp ext/target/release/libmethodray.dylib lib/methodray/methodray.bundle
7868
;;
7969
*-linux)
80-
cp target/${{ matrix.rust-target }}/release/libmethodray.so lib/methodray/methodray.so
70+
cp ext/target/release/libmethodray.so lib/methodray/methodray.so
8171
;;
8272
esac
8373
ls -la lib/methodray/

0 commit comments

Comments
 (0)