Skip to content

Commit

Permalink
Update version to 0.3.0 for Dart SDK v3.4.0 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilap committed May 23, 2024
1 parent 1d834af commit 128fbdd
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 24 deletions.
68 changes: 47 additions & 21 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,53 @@
# .github/workflows/publish.yml
name: Publish to pub.dev
name: Dart

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'
[push, pull_request]

# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest

# Default test configurations.
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable, beta, dev]
architecture: [x64, arm, arm64]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Print DART_HOME
run: echo "Dart SDK installed in $DART_HOME"
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart run example/main.dart
- run: dart run example/example.dart
- run: dart analyze
- run: dart test


# Default test configurations.
test_32bit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
sdk: [stable]
architecture: [ia32, arm]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Run Analyzer
run: dart analyze
- name: Run tests
run: dart test
- name: Publish
run: dart pub publish --force
with:
sdk: ${{ matrix.sdk }}
- name: Print DART_HOME
run: echo "Dart SDK installed in $DART_HOME"
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart run example/main.dart
- run: dart run example/example.dart
- run: dart analyze
- run: dart test
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'

# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Publish - dry run
run: dart pub publish --dry-run
- name: Publish to pub.dev
run: dart pub publish -f
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ v0.2.1
* Removed pointycastle and HEX package dependencies.

v0.2.2
* Added support for the `extendable backup flag`. See details in the recent [revision](https://github.com/satoshilabs/slips/commit/8d060706b549af6443e04f55605b71f65c981663?short_path=ee22765#diff-ee22765e198171085aada68244108cf54a020b79e69e67440854e27a4a927f04) of the [SLIP-39 specification](https://github.com/satoshilabs/slips/blob/master/slip-0039.md).
* Added support for the `extendable backup flag`. See details in the recent [revision](https://github.com/satoshilabs/slips/commit/8d060706b549af6443e04f55605b71f65c981663?short_path=ee22765#diff-ee22765e198171085aada68244108cf54a020b79e69e67440854e27a4a927f04) of the [SLIP-39 specification](https://github.com/satoshilabs/slips/blob/master/slip-0039.md).

v0.3.0
* Update version to 0.3.0 for Dart SDK v3.4.0 compatibility.
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: slip39
description: The dart implementation of the SLIP39 for Shamir's Secret-Sharing for Mnemonic Codes.
version: 0.2.2
version: 0.3.0
homepage: https://github.com/ilap/slip39-dart

dependencies:
pinenacl: ^0.5.1
pinenacl: ^0.6.0

dev_dependencies:
lints: ^4.0.0
Expand Down

0 comments on commit 128fbdd

Please sign in to comment.