-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI, update example, dependencies, readme (#228)
* Add CI and update example 1. Add CI build test with GitHub Actions 2. Delete example web target 3. Change example target name to `bitsdojo_window_example` 4. Update example dependencies version * Update dependencies version * Update README.md 1. Add badges 2. Optimize markdown syntax 3. Update code block readability * Add file path to code block * macOS fixes
- Loading branch information
Showing
39 changed files
with
476 additions
and
349 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,97 @@ | ||
name: build-test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- ".vscode/**" | ||
- "CHANGELOG.md" | ||
- "LICENSE" | ||
- "README.md" | ||
- "resources/**" | ||
- "**/CHANGELOG.md" | ||
- "**/LICENSE" | ||
- "**/README.md" | ||
pull_request: | ||
paths-ignore: | ||
- ".vscode/**" | ||
- "CHANGELOG.md" | ||
- "LICENSE" | ||
- "README.md" | ||
- "resources/**" | ||
- "**/CHANGELOG.md" | ||
- "**/LICENSE" | ||
- "**/README.md" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: > | ||
${{ github.workflow }} | ||
${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.runner }} | ||
runs-on: ${{ matrix.runner }}-latest | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false # Important | ||
matrix: | ||
runner: [ubuntu, windows, macos] | ||
include: | ||
- runner: ubuntu | ||
target: linux | ||
- runner: windows | ||
target: windows | ||
- runner: macos | ||
target: macos | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
submodules: true | ||
|
||
- name: Setup Flutter SDK | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Setup Ninja and GTK3 toolchain (Only Linux) | ||
if: matrix.runner == 'ubuntu' | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y ninja-build libgtk-3-dev | ||
- name: Fetch dependencies | ||
working-directory: bitsdojo_window/example | ||
run: flutter pub get | ||
|
||
- name: Run flutter build ${{ matrix.target }} | ||
working-directory: bitsdojo_window/example | ||
run: flutter build ${{ matrix.target }} --release -v | ||
|
||
- name: Archive artifacts (Linux) | ||
if: matrix.runner == 'ubuntu' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bitsdojo_window_example_${{ matrix.runner }} | ||
path: bitsdojo_window/example/build/linux/x64/release/bundle/ | ||
|
||
- name: Archive artifacts (Windows) | ||
if: matrix.runner == 'windows' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bitsdojo_window_example_${{ matrix.runner }} | ||
path: bitsdojo_window/example/build/windows/runner/Release/bitsdojo_window_example.exe | ||
|
||
- name: Archive artifacts (macOS) | ||
if: matrix.runner == 'macos' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bitsdojo_window_example_${{ matrix.runner }} | ||
path: bitsdojo_window/example/build/macos/Build/Products/Release/bitsdojo_window_example.app |
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
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,3 +1,5 @@ | ||
## 0.1.6 | ||
- Various fixes to work with latest Flutter version | ||
## 0.1.5 | ||
- Runs on Windows 7 | ||
## 0.1.4 | ||
|
Oops, something went wrong.