Add chacha20 with benchmark and examples #1
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
paths: ['**.dart', '**.yaml', '**.yml'] | |
pull_request: | |
branches: [master] | |
paths: ['**.dart', '**.yaml'] | |
schedule: | |
- cron: '0 0 * * 5' # m h d M w | |
jobs: | |
build: | |
if: github.repository == 'bitanon/cipherlib' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# You can specify other versions if desired, see documentation here: | |
# https://github.com/dart-lang/setup-dart/blob/main/README.md | |
- uses: dart-lang/setup-dart@v1.4 | |
with: | |
sdk: stable | |
- name: Install dependencies | |
run: dart pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Analyze project source | |
run: dart analyze --fatal-infos | |
- name: Generate documentation | |
run: dart doc | |
- name: Run tests | |
run: dart test |