π©βπ» Create a build dart script, add github actions #1
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
name: Build Dart Shared Library | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build_windows: | |
runs-on: [windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- uses: threal/cmake-action@v1 | |
- run: dart pub get | |
working-directory: ./scripts/build_helpers | |
- name: Build Dart | |
run: dart ./scripts/build_helpers/bin/build_dart.dart | |
- name: Build Shared Library | |
run: cmake -B .\.build . && cmake --build .\.build --config release | |