dart pub upgrade && dart pub upgrade --major-versions
(#303)
#695
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
--- | |
name: Dart CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
dart_format: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: dart format | |
run: dart format . -l 120 --set-exit-if-changed | |
dart_analyze: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: install dependencies | |
run: dart pub get | |
- name: analyzer | |
run: dart analyze --fatal-infos --fatal-warnings . | |
run_sample: | |
needs: [dart_format, dart_analyze] | |
timeout-minutes: 15 | |
runs-on: ${{ matrix.runner_machine }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-intel-silicon, macos-latest] | |
include: # See: https://docs.github.com/ja/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix | |
- os: ubuntu-latest | |
runner_machine: ubuntu-latest | |
edax_runner_bin_name: edax_runner | |
libedax_shared_library_name: libedax.so | |
- os: windows-latest | |
runner_machine: windows-latest | |
edax_runner_bin_name: edax_runner.exe | |
libedax_shared_library_name: libedax-x64.dll | |
- os: macos-intel-silicon | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
runner_machine: macos-13 | |
edax_runner_bin_name: edax_runner | |
libedax_shared_library_name: libedax.universal.dylib | |
- os: macos-latest # apple silicon | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
runner_machine: macos-latest | |
edax_runner_bin_name: edax_runner | |
libedax_shared_library_name: libedax.universal.dylib | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: install dependencies | |
run: dart pub get | |
- name: build edax_runner | |
shell: bash | |
run: ./scripts/build_edax_runner.sh ${{ matrix.edax_runner_bin_name }} ${{ matrix.libedax_shared_library_name }} | |
- name: run edax_runner with sample assets | |
run: cd build && ./${{ matrix.edax_runner_bin_name }} |