Skip to content

Commit

Permalink
ci(build): try use zig abi
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Aug 3, 2024
1 parent a826cbe commit fc53352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
target: armv7-linux-androideabi
abi: android-armv7
cli_only: true
zig: false
zig: true
# - os: ubuntu-latest
# abi: darwin-x64
# target: x86_64-apple-darwin
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
run: >-
cd packages/create-farm && npm run build -- ${{ matrix.settings.target && format('--target {0}', matrix.settings.target) || '' }} ${{ matrix.settings.zig && '--zig' || '' }}
- name: LS Create Farm Rust
if: ${{ !matrix.settings.cli_only }}
if: ${{ matrix.settings.cli_only }}
run: ls -la ./packages/create-farm/
- name: Build
if: ${{ !matrix.settings.docker && matrix.settings.build }}
Expand All @@ -160,7 +160,7 @@ jobs:
name: ${{ github.sha }}-${{ matrix.settings.abi }}
path: ./packages/core/binding/farm.${{ matrix.settings.abi }}.node
- name: Upload Create Farm Rust
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}-${{ matrix.settings.abi }}-create-farm
path: ./packages/create-farm/create-farm.${{ matrix.settings.abi }}.node
Expand Down
2 changes: 1 addition & 1 deletion packages/create-farm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

/* auto-generated by NAPI-RS */

export function run(args: Array<string>, binName?: string | undefined | null, pkgManager?: string | undefined | null): void
export declare function run(args: Array<string>, binName?: string | undefined | null, pkgManager?: string | undefined | null): void

0 comments on commit fc53352

Please sign in to comment.