-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into improve-ds-interop-performance
- Loading branch information
Showing
135 changed files
with
8,914 additions
and
4,265 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 |
---|---|---|
|
@@ -13,12 +13,12 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
FLUTTER_VERSION: 3.22.0 | ||
FLUTTER_VERSION: 3.22.3 | ||
|
||
jobs: | ||
formatting-analysis: | ||
name: "Check Formatting & Analyze" | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repo | ||
|
@@ -44,10 +44,10 @@ jobs: | |
run: dart run import_sorter:main --exit-if-changed | ||
|
||
- name: Analyze project source | ||
run: flutter analyze --no-fatal-infos --no-fatal-warnings | ||
run: flutter analyze --no-fatal-infos | ||
test: | ||
name: "Run Tests" | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repo | ||
|
@@ -63,16 +63,30 @@ jobs: | |
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Install junit reporter | ||
run: dart pub global activate junitreport | ||
|
||
- name: Generate mocks | ||
run: dart run build_runner build | ||
|
||
- name: Run tests | ||
run: flutter test --coverage | ||
run: flutter test --coverage --file-reporter json:reports/test-report.json | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
files: coverage/lcov.info | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Generate junit report xml | ||
run: dart pub global run junitreport:tojunit --input reports/test-report.json --output reports/junit-report.xml | ||
|
||
- name: Upload test reports to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
files: reports/junit-report.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
build: | ||
strategy: | ||
fail-fast: false | ||
|
@@ -86,12 +100,10 @@ jobs: | |
build-option: "macos" | ||
artifact-path: "build/macos/Build/Products/Release/Elastic-macOS.zip" | ||
artifact-name: Elastic-macOS | ||
executable-type: portable | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
build-option: "linux" | ||
artifact-path: "build/linux/x64/release/bundle" | ||
artifact-name: Elastic-Linux | ||
executable-type: portable | ||
|
||
name: "Build - ${{ matrix.artifact-name }}" | ||
needs: [formatting-analysis, test] | ||
|
@@ -101,11 +113,11 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install flutter dependencies | ||
- name: Install flutter build dependencies | ||
if: ${{ matrix.build-option == 'linux' }} | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y ninja-build libgtk-3-dev | ||
sudo apt-get install -y libglu1-mesa ninja-build libgtk-3-dev liblzma-dev | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
|
@@ -123,18 +135,11 @@ jobs: | |
- name: Build app | ||
run: flutter build ${{ matrix.build-option }} | ||
|
||
- name: Create installer | ||
if: ${{ matrix.build-option == 'windows' }} | ||
uses: Minionguyjpro/[email protected] | ||
with: | ||
path: installer_setup_script.iss | ||
options: /O+ | ||
|
||
- name: Zip release | ||
if: ${{ matrix.build-option == 'macos' }} | ||
run: | | ||
cd build/macos/Build/Products/Release | ||
zip -r Elastic-macOS.zip elastic_dashboard.app --symlinks | ||
zip -r ${{ matrix.artifact-name }}.zip elastic_dashboard.app --symlinks | ||
- name: Upload artifact | ||
if: ${{ matrix.build-option != 'windows' }} | ||
|
@@ -144,18 +149,101 @@ jobs: | |
path: ${{ matrix.artifact-path }} | ||
if-no-files-found: error | ||
|
||
- name: Upload artifact (Windows portable) | ||
- name: Upload windows portable | ||
if: ${{ matrix.build-option == 'windows' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }}_portable | ||
path: ${{ matrix.artifact-path }} | ||
if-no-files-found: error | ||
|
||
- name: Upload artifact (Windows installer) | ||
- name: Create macOS installer | ||
if: ${{ matrix.build-option == 'macos' }} | ||
uses: L-Super/[email protected] | ||
with: | ||
dmg_name: build/macos/Build/Products/Release/elastic-setup | ||
src_dir: build/macos/Build/Products/Release/elastic_dashboard.app | ||
|
||
- name: Upload macOS installer | ||
if: ${{ matrix.build-option == 'macos' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }}_installer | ||
path: build/macos/Build/Products/Release/elastic-setup.dmg | ||
if-no-files-found: error | ||
|
||
- name: Create windows installer | ||
if: ${{ matrix.build-option == 'windows' }} | ||
uses: Minionguyjpro/[email protected] | ||
with: | ||
path: installer_setup_script.iss | ||
options: /O+ | ||
|
||
- name: Upload windows installer | ||
if: ${{ matrix.build-option == 'windows' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }}_installer | ||
path: "build/windows/x64/installer" | ||
if-no-files-found: error | ||
if-no-files-found: error | ||
|
||
build-wpilib: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
build-option: "windows" | ||
artifact-path: "build/windows/x64/runner/Release" | ||
artifact-name: Elastic-WPILib-Windows | ||
- os: macos-latest | ||
build-option: "macos" | ||
artifact-path: "build/macos/Build/Products/Release/Elastic-WPILib-macOS.tar.gz" | ||
artifact-name: Elastic-WPILib-macOS | ||
- os: ubuntu-22.04 | ||
build-option: "linux" | ||
artifact-path: "build/linux/x64/release/bundle" | ||
artifact-name: Elastic-WPILib-Linux | ||
|
||
name: "Build - ${{ matrix.artifact-name }}" | ||
needs: [formatting-analysis, test] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install flutter build dependencies | ||
if: ${{ matrix.build-option == 'linux' }} | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libglu1-mesa ninja-build libgtk-3-dev liblzma-dev | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
cache: true | ||
cache-path: ${{ runner.tool_cache }}/flutter/${{ matrix.build-option }} | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate icons | ||
run: dart run flutter_launcher_icons -f wpilib_icon_config.yaml | ||
|
||
- name: Build app | ||
run: flutter build ${{ matrix.build-option }} --dart-define=ELASTIC_WPILIB=true | ||
|
||
- name: Zip release | ||
if: ${{ matrix.build-option == 'macos' }} | ||
run: | | ||
cd build/macos/Build/Products/Release | ||
tar -zcvf ${{ matrix.artifact-name }}.tar.gz elastic_dashboard.app | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: ${{ matrix.artifact-path }} | ||
if-no-files-found: error |
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,32 @@ | ||
name: ElasticLib | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
wpiformat-analyze: | ||
name: "Verify Formatting" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch all history and metadata | ||
run: | | ||
git checkout -b pr | ||
git branch -f main origin/main | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
- name: Install wpiformat | ||
run: pip3 install wpiformat==2024.50 | ||
- name: Run wpiformat | ||
run: wpiformat -f Elastic.java elasticlib.h elasticlib.cpp elasticlib.py | ||
working-directory: ./elasticlib | ||
- name: Check output | ||
run: git --no-pager diff --exit-code HEAD |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Privacy Policy | ||
|
||
Elastic is a volunteer-run project that is owned and published by Nadav from FIRST Robotics Competition Team 353 ("Elastic"), based in the United States. | ||
|
||
## Information We Collect | ||
|
||
Elastic does not collect data from users of the application. | ||
|
||
The Elastic application will create and store logs of application errors and user interactions on the user's system, but these logs are not shared unless it's done manually by the user. | ||
|
||
## Third-Party Data Collection | ||
|
||
The Elastic repository and documentation site are hosted by GitHub, which publishes a [privacy policy](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement) that applies when interacting with these services. | ||
|
||
The Elastic application may connect to GitHub services to check for updates. These interactions are covered by the GitHub privacy policy. | ||
|
||
The documentation for Elastic is hosted on GitBook, which has a [privacy policy](https://policies.gitbook.com/privacy-and-security/statement) that applies when interacting with their services. | ||
|
||
## Contact | ||
|
||
Questions about this policy can be directed to [email protected] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.