Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 53fdb3f

Browse files
committed
fix: github workflow
1 parent d746313 commit 53fdb3f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/dart.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,18 @@ jobs:
6868

6969
# - name: Generate Coverage
7070
# run: pub run test_coverage --no-badge
71-
#
71+
7272
# - name: Upload Coverage
7373
# uses: codecov/codecov-action@v1.0.7
7474

75+
# - name: Cache Dart packages
76+
# uses: actions/cache@v2
77+
# with:
78+
# path: ~/.pub-cache
79+
# key: ${{ runner.os }}-dart-${{ hashFiles('**/pubspec.lock') }}
80+
# restore-keys: |
81+
# ${{ runner.os }}-dart-
82+
7583
- name: Dart2Native Build
7684
run: |
7785
dart --version
@@ -111,11 +119,12 @@ jobs:
111119
name: ${{ matrix.bin-name }}
112120

113121
- name: Executing on (${{ matrix.os }})
114-
if: matrix.os == 'windows-latest'
122+
if: startsWith(matrix.os, 'windows')
115123
run: |
116124
.\${{ matrix.file-name }} -s
117125
118126
- name: Executing on (${{ matrix.os }})
127+
if: !startsWith(matrix.os, 'windows')
119128
run: |
120129
chmod +x ${{ matrix.file-name }}
121130
./${{ matrix.file-name }} -s

0 commit comments

Comments
 (0)