-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'cargokit/' content from commit 969c49a
- Loading branch information
1 parent
f35a2cb
commit 2761090
Showing
199 changed files
with
3,756 additions
and
79,653 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,26 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Check and Lint | ||
|
||
jobs: | ||
Flutter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 #v2.7.0 | ||
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d #1.6.0 | ||
- name: Pub Get | ||
run: dart pub get --no-precompile | ||
working-directory: build_tool | ||
- name: Dart Format | ||
run: dart format . --output=none --set-exit-if-changed | ||
working-directory: build_tool | ||
- name: Analyze | ||
run: dart analyze | ||
working-directory: build_tool | ||
- name: Test | ||
run: dart test | ||
working-directory: build_tool |
This file was deleted.
Oops, something went wrong.
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,82 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Test Example Plugin | ||
|
||
jobs: | ||
Build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
build_mode: | ||
- debug | ||
- profile | ||
- release | ||
env: | ||
EXAMPLE_DIR: "a b/hello_rust_ffi_plugin/example" | ||
CARGOKIT_VERBOSE: 1 | ||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
- name: Setup Repository | ||
shell: bash | ||
run: | | ||
mkdir "a b" # Space is intentional | ||
cd "a b" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
# "advanced" branch has extra iOS flavor and uses rust nightly for release builds | ||
git clone -b advanced https://github.com/irondash/hello_rust_ffi_plugin | ||
cd hello_rust_ffi_plugin | ||
git subtree pull --prefix cargokit https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }} ${{ steps.extract_branch.outputs.branch }} --squash | ||
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # 2.11.0 | ||
with: | ||
channel: "stable" | ||
- name: Install GTK | ||
if: (matrix.os == 'ubuntu-latest') | ||
run: sudo apt-get update && sudo apt-get install libgtk-3-dev | ||
- name: Install ninja-build | ||
if: (matrix.os == 'ubuntu-latest') | ||
run: sudo apt-get update && sudo apt-get install ninja-build | ||
- name: Build Linux (${{ matrix.build_mode }}) | ||
if: matrix.os == 'ubuntu-latest' | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: flutter build linux --${{ matrix.build_mode }} -v | ||
- name: Build macOS (${{ matrix.build_mode }}) | ||
if: matrix.os == 'macos-latest' | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: flutter build macos --${{ matrix.build_mode }} -v | ||
- name: Build iOS (${{ matrix.build_mode }}) | ||
if: matrix.os == 'macos-latest' | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: flutter build ios --${{ matrix.build_mode }} --no-codesign -v | ||
- name: Build iOS (${{ matrix.build_mode }}) - flavor1 | ||
if: matrix.os == 'macos-latest' | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: flutter build ios --flavor flavor1 --${{ matrix.build_mode }} --no-codesign -v | ||
- name: Build Windows (${{ matrix.build_mode }}) | ||
if: matrix.os == 'windows-latest' | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: flutter build windows --${{ matrix.build_mode }} -v | ||
- name: Build Android (${{ matrix.build_mode }}) | ||
shell: bash | ||
working-directory: ${{ env.EXAMPLE_DIR }} | ||
run: | | ||
export JAVA_HOME=$JAVA_HOME_11_X64 | ||
flutter build apk --${{ matrix.build_mode }} -v | ||
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 |
---|---|---|
@@ -1,38 +1,4 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
.vscode/settings.json | ||
|
||
# IntelliJ related | ||
target | ||
.dart_tool | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
|
||
**/doc/api/ | ||
.dart_tool/ | ||
.packages | ||
build/ | ||
bdk.*/ | ||
*.xcframework | ||
android/src/main/jniLibs/ | ||
rust/target/ | ||
rust/output.log | ||
|
||
|
||
!pubspec.lock |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.