Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Mar 13, 2024
1 parent 2b5429c commit 4d65d84
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,40 @@ jobs:
- os_name: Linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
origin_dylib_suffix: so
dest_dylib_suffix: so

- os_name: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
origin_dylib_suffix: dylib
dest_dylib_suffix: so

- os_name: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
origin_dylib_suffix: dylib
dest_dylib_suffix: so

toolchain:
- stable
steps:
- uses: actions/checkout@v3
- name: Build binary
- name: Build library
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--locked --release --manifest-path ./generator/Cargo.toml"
args: "--release --manifest-path ./generator/Cargo.toml"

- name: Rename dynamic lib
run: cp genator/target/release/libgenerator.${{ matrix.platform.origin_dylib_suffix }} lua/generator.${{ matrix.platform.dest_dylib_suffix }}

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "[Update] build FFI dynamic library"
# - name: Rename binary (linux and macos)
# run: mv target/${{ matrix.platform.target }}/release/figctl target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
# if: matrix.platform.os_name != 'Windows-x86_64'
Expand Down
11 changes: 0 additions & 11 deletions generator/.cargo/config

This file was deleted.

0 comments on commit 4d65d84

Please sign in to comment.