Skip to content

Commit

Permalink
πŸ‘©β€πŸ’» Move build steps to shared actions
Browse files Browse the repository at this point in the history
Also upload artifacts, add Linux target.
  • Loading branch information
fuzzybinary committed Sep 24, 2023
1 parent b822b14 commit 8519519
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/actions/build-action/action.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- name: Build Shared Library
run: cmake --build build --config release
25 changes: 16 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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/
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"**/.DS_Store": true, // this is a default value

"dart-sdk/": true
}
},
"dart.analysisExcludedFolders": [
"dart-sdk"
]
}

0 comments on commit 8519519

Please sign in to comment.