Skip to content

Commit

Permalink
tryfix: win lib
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 11, 2024
1 parent dda0dd0 commit 4f0f1ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/cross_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,14 @@ jobs:
- name: cbindgen
run: |
cargo install --force cbindgen
ls target/${{ matrix.target }}/release/
cbindgen --config cbindgen.toml --crate realm --output target/${{ matrix.target }}/release/librealm.h
- name: upload unix binary
if: "!contains(matrix.target, 'windows')"
uses: actions/upload-artifact@v4
with:
name: realm-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/librealm.a
target/${{ matrix.target }}/release/librealm.h
- name: upload windows binary
if: "contains(matrix.target, 'windows')"
uses: actions/upload-artifact@v4
with:
name: realm-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/realm.lib
target/${{ matrix.target }}/release/librealm.h
build-windows:
runs-on: windows-latest
strategy:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,10 @@ jobs:
cargo install --force cbindgen
cbindgen --config cbindgen.toml --crate realm --output ../target/${{ matrix.target }}/release/librealm.h
- name: pack unix binary
if: "!contains(matrix.target, 'windows')"
run: |
mkdir -p release-${{ matrix.target }}
cd release-${{ matrix.target }}
tar -C ../target/${{ matrix.target }}/release -zcf realm-${{ matrix.target }}.tar.gz librealm.a librealm.h
- name: pack windows binary
if: "contains(matrix.target, 'windows')"
run: |
mkdir -p release-${{ matrix.target }}
cd release-${{ matrix.target }}
ls ../target/${{ matrix.target }}/release/
tar -C ../target/${{ matrix.target }}/release -zcf realm-${{ matrix.target }}.tar.gz realm.lib librealm.h
- name: add signature
run: |
cd release-${{ matrix.target }}
Expand Down

0 comments on commit 4f0f1ee

Please sign in to comment.