Skip to content

Commit

Permalink
updated runner workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clragon committed Oct 8, 2023
1 parent da3216c commit d4f605c
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ jobs:
distribution: 'adopt'
java-version: '17'

- name: parse flutter version
run: |
export FLUTTER_VERSION=$(grep "^ flutter:" pubspec.yaml | awk -F"'" '{print $2}' | awk -F"[<>= ]" '{for(i=1;i<=NF;i++) if($i!="") {print $i; exit}}')
echo "FLUTTER_VERSION=$FLUTTER_VERSION" >> $GITHUB_ENV
- name: setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

- name: cache flutter dependencies
Expand Down Expand Up @@ -97,10 +102,15 @@ jobs:
- name: setup actions
uses: actions/checkout@v3

- name: parse flutter version
run: |
export FLUTTER_VERSION=$(grep "^ flutter:" pubspec.yaml | awk -F"'" '{print $2}' | awk -F"[<>= ]" '{for(i=1;i<=NF;i++) if($i!="") {print $i; exit}}')
echo "FLUTTER_VERSION=$FLUTTER_VERSION" >> $GITHUB_ENV
- name: setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

- name: cache flutter dependencies
Expand Down Expand Up @@ -150,10 +160,16 @@ jobs:
ruby-version: '3.0'
bundler-cache: true

- name: parse flutter version
run: |
export FLUTTER_VERSION=$(grep "^ flutter:" pubspec.yaml | awk -F"'" '{print $2}' | awk -F"[<>= ]" '{for(i=1;i<=NF;i++) if($i!="") {print $i; exit}}')
echo "FLUTTER_VERSION=$FLUTTER_VERSION" >> $GITHUB_ENV
- name: setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true

- name: setup cider
run: dart pub global activate cider
Expand Down

0 comments on commit d4f605c

Please sign in to comment.