diff --git a/.github/actions/build-action/action.yaml b/.github/actions/build-action/action.yaml new file mode 100644 index 0000000..e80deeb --- /dev/null +++ b/.github/actions/build-action/action.yaml @@ -0,0 +1,13 @@ +name: Build Dart Shared Library +runs: + using: "composite" + steps: + - uses: dart-lang/setup-dart@v1 + - uses: ilammy/msvc-dev-cmd@v1 + - run: dart pub get + working-directory: ./scripts/build_helpers + - name: Build Dart + run: dart ./scripts/build_helpers/bin/build_dart.dart + - uses: threeal/cmake-action@v1.3.0 + - name: Build Shared Library + run: cmake --build build --config release diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8118e0d..1856a49 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,12 +11,19 @@ jobs: DEPOT_TOOLS_WIN_TOOLCHAIN: 0 steps: - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 - - uses: ilammy/msvc-dev-cmd@v1 - - run: dart pub get - working-directory: ./scripts/build_helpers - - name: Build Dart - run: dart ./scripts/build_helpers/bin/build_dart.dart - - uses: threeal/cmake-action@v1.3.0 - - name: Build Shared Library - run: cmake --build build --config release + - uses: ./.github/actions/build-action + - name: 'Upload Artifact' + uses: actions/upload-artifact@v3 + with: + name: windows-libs + path: ./build/src/Release/ + build_linux: + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/build-action + - name: 'Upload Artifact' + uses: actions/upload-artifact@v3 + with: + name: linux-libs + path: ./build/src/Release/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 9dc4e40..19903bf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,8 @@ "**/.DS_Store": true, // this is a default value "dart-sdk/": true - } + }, + "dart.analysisExcludedFolders": [ + "dart-sdk" + ] } \ No newline at end of file