Skip to content

Commit

Permalink
enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Jul 16, 2024
1 parent 018f47f commit 556b73c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 69 deletions.
1 change: 1 addition & 0 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: ci
description: Executes Dart specific CI steps.

inputs:
type:
description: The type of CI to run.
Expand Down
33 changes: 25 additions & 8 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,35 @@ description: Installs dependencies
runs:
using: composite
steps:
# General Tests
- name: Install packages
# Install Flutter SDK
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64

# Get package dependencies and generate files
- name: Get package dependencies and generate files
shell: bash
run: flutter pub get
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# - name: Generate code
# shell: bash
# run: flutter pub run build_runner build --delete-conflicting-outputs
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
shell: bash
working-directory: example/wallet
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
- name: Install packages for example
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
shell: bash
run: cd example/dapp && flutter pub get && cd ../..
working-directory: example/dapp
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
- name: Verify formatting and analyze project source
shell: bash
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,26 @@ jobs:
name: Publish to pub.dev
permissions:
id-token: write
runs-on: ubuntu-latest
runs-on: macos-latest-xlarge
steps:
# Checkout the repo
- uses: actions/checkout@v3

# Install Flutter
- name: Install and set Flutter version
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.5'

# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies

# Setup Dart SDK
- uses: dart-lang/setup-dart@v1

# Setup Dependencies
- uses: ./.github/actions/dependencies

# Publish
- name: Check Publish Warnings
shell: bash
run: flutter pub publish --dry-run

- name: Publish Package
shell: bash
run: flutter pub publish -f

# Notify
- name: Notify Channel
uses: slackapi/[email protected]
Expand All @@ -44,4 +40,7 @@ jobs:
payload: |-
{
"text":"🚀 WalletConnectFlutterV2 *${{ github.ref_name }}* was just published at https://pub.dev/packages/walletconnect_flutter_v2"
}
}
# Launch locally
# act -j publish --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret -W .github/workflows/publish.yml
21 changes: 2 additions & 19 deletions .github/workflows/release_dapp_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,8 @@ jobs:
# - name: Install Fastlane
# run: gem install fastlane

# Install Flutter SDK
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64

# Get package dependencies and generate files
- name: Get package dependencies and generate files
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
working-directory: example/dapp
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies

# Build App
- name: Build App
Expand Down
45 changes: 14 additions & 31 deletions .github/workflows/release_wallet_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
# with:
# bundler-cache: true

# # Cache
# - name: Cache
# uses: actions/cache@v3
# with:
# path: |
# .build
# SourcePackagesCache
# DerivedDataCache
# key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
# restore-keys: |
# ${{ runner.os }}-spm-
# Cache
- name: Cache
uses: actions/cache@v3
with:
path: |
.build
SourcePackagesCache
DerivedDataCache
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
# # Install Ruby
# - name: Install Ruby
Expand All @@ -40,27 +40,10 @@ jobs:

# # Install Fastlane
# - name: Install Fastlane
# run: gem install fastlane

# Install Flutter SDK
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
# run: gem install fastlane

# Get package dependencies and generate files
- name: Get package dependencies and generate files
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Get example app dependencies and generate files
- name: Get example app dependencies and generate files
working-directory: example/wallet
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies

# Build App
- name: Build App
Expand Down

0 comments on commit 556b73c

Please sign in to comment.