From 33ac1cf34880eb9025a349005055eba6dcbfe7fb Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 28 May 2024 15:24:08 +0200 Subject: [PATCH] Add basic github workflow to build c# bindings --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..825e8ab --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Build + +on: + push: + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + fail-fast: false + + 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 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 \ No newline at end of file