Parcourir la source

ci: export path to CI

appflowy il y a 3 ans
Parent
commit
30bedb337f
2 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 1
      .github/workflows/ci.yaml
  2. 0 2
      frontend/scripts/makefile/protobuf.toml

+ 2 - 1
.github/workflows/ci.yaml

@@ -33,6 +33,7 @@ jobs:
           cargo install --force cargo-make
           cargo install --force duckscript_cli
           cargo make flowy_dev
+          echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
       - name: Build
         working-directory: frontend
         run: cargo make --profile production-mac-x86 appflowy
@@ -73,8 +74,8 @@ jobs:
         run: |
           cargo install --force cargo-make
           cargo install --force duckscript_cli
-          sudo apt-get install protobuf-compiler
           cargo make flowy_dev
+          echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
       - name: Build
         working-directory: frontend
         run: cargo make --profile production-linux-x86 appflowy

+ 0 - 2
frontend/scripts/makefile/protobuf.toml

@@ -25,7 +25,6 @@ brew install protobuf
 
 echo "Install protoc_plugin (Dart)"
 dart pub global activate protoc_plugin
-export PATH="$PATH":"$HOME/.pub-cache/bin"
 """
 script_runner = "@shell"
 
@@ -35,7 +34,6 @@ sudo apt-get install protobuf-compiler
 
 echo "Install protoc_plugin (Dart)"
 dart pub global activate protoc_plugin
-export PATH="$PATH":"$HOME/.pub-cache/bin"
 """
 script_runner = "@shell"