Skip to content

Commit

Permalink
Add basic github workflow to build c# bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 28, 2024
1 parent 1ce12d6 commit 68abcc2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv

- name: Build bindings
run: devenv shell cargo install uniffi-bindgen-cs && uniffi-bindgen-cs src/interface.udl --config ./uniffi.toml
working-directory: uniffi

- name: Build dynamic library
run: devenv shell cargo build --release
working-directory: uniffi

0 comments on commit 68abcc2

Please sign in to comment.