forked from TheBlueMatt/dnssec-prover
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic github workflow to build c# bindings
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
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 -- --config uniffi/uniffi.toml uniffi/src/interface.udl | ||
|
||
- name: Build dynamic library | ||
run: devenv shell cargo -- build --release | ||
working-directory: uniffi |