Skip to content

Commit

Permalink
Run apt-get update before installing webp (#7046)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Sep 18, 2023
1 parent 3e585cf commit 273e38c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ jobs:
- job_004
- job_005
job_008:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 0`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 0`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -394,8 +394,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 0"
Expand All @@ -411,7 +411,7 @@ jobs:
- job_006
- job_007
job_009:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 1`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 1`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -436,8 +436,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 1"
Expand All @@ -453,7 +453,7 @@ jobs:
- job_006
- job_007
job_010:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 2`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 2`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -478,8 +478,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 2"
Expand All @@ -495,7 +495,7 @@ jobs:
- job_006
- job_007
job_011:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 3`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 3`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -520,8 +520,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 3"
Expand All @@ -537,7 +537,7 @@ jobs:
- job_006
- job_007
job_012:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 4`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 4`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -562,8 +562,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 4"
Expand All @@ -579,7 +579,7 @@ jobs:
- job_006
- job_007
job_013:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 5`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 5`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -604,8 +604,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 5"
Expand All @@ -621,7 +621,7 @@ jobs:
- job_006
- job_007
job_014:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 6`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 6`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -646,8 +646,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 6"
Expand All @@ -663,7 +663,7 @@ jobs:
- job_006
- job_007
job_015:
name: "unit_test; PKG: app; `sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 7`"
name: "unit_test; PKG: app; `sudo apt-get update -yq && sudo apt-get install webp`, `dart test -P presubmit --total-shards 8 --shard-index 7`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
Expand All @@ -688,8 +688,8 @@ jobs:
run: dart pub get
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: app
- name: "app; sudo apt-get install webp"
run: sudo apt-get install webp
- name: "app; sudo apt-get update -yq && sudo apt-get install webp"
run: "sudo apt-get update -yq && sudo apt-get install webp"
if: "always() && steps.app_pub_get.conclusion == 'success'"
working-directory: app
- name: "app; dart test -P presubmit --total-shards 8 --shard-index 7"
Expand Down
16 changes: 8 additions & 8 deletions app/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ stages:
- analyze: --fatal-infos .
- unit_test:
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 0
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 1
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 2
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 3
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 4
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 5
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 6
- group:
- command: sudo apt-get install webp
- command: sudo apt-get update -yq && sudo apt-get install webp
- test: -P presubmit --total-shards 8 --shard-index 7

cache:
Expand Down
4 changes: 2 additions & 2 deletions tool/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ for PKG in ${PKGS}; do
dart analyze --fatal-infos --fatal-warnings bin/ lib/ || EXIT_CODE=$?
;;
command_0)
echo 'sudo apt-get install webp'
sudo apt-get install webp || EXIT_CODE=$?
echo 'sudo apt-get update -yq && sudo apt-get install webp'
sudo apt-get update -yq && sudo apt-get install webp || EXIT_CODE=$?
;;
command_1)
echo './build.sh'
Expand Down

0 comments on commit 273e38c

Please sign in to comment.