Skip to content

Commit

Permalink
chore: use --locked to install duckscript
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Dec 17, 2024
1 parent 05d772e commit 0ad80b1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
working-directory: frontend
run: |
rustup target install aarch64-linux-android
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
cargo install --version 3.3.0 cargo-ndk
sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
sudo wget -qO /etc/apt/sources.list.d/dart_stable.list https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
working-directory: frontend
run: |
rustup target install aarch64-apple-ios
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
cargo install --force cargo-lipo
cargo make appflowy-flutter-deps-tools
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
sudo apt-get -y install alien
sudo apt install libmpv-dev mpv
source $HOME/.cargo/env
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
rustup target add ${{ matrix.target }}
shell: bash

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Install prerequisites
working-directory: frontend
run: |
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Generate env file
working-directory: frontend/appflowy_flutter
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Install prerequisites
working-directory: frontend
run: |
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Generate env file
working-directory: frontend/appflowy_flutter
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: Install prerequisites
working-directory: frontend
run: |
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Generate env file
working-directory: frontend/appflowy_flutter
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
run: |
vcpkg integrate install
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Build Windows app
working-directory: frontend
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
working-directory: frontend
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Build AppFlowy
working-directory: frontend
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
sudo apt install libmpv-dev mpv
source $HOME/.cargo/env
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
rustup target add ${{ matrix.job.target }}
- name: Install gcc-aarch64-linux-gnu
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
working-directory: frontend
run: |
vcpkg integrate install
cargo install --force duckscript_cli
cargo install duckscript_cli --force --locked
- name: Generate env file
working-directory: frontend/appflowy_flutter
Expand Down Expand Up @@ -113,17 +113,17 @@ jobs:
name: ${{ env.WINDOWS_ZIP_NAME }}
path: ${{ env.WINDOWS_APP_RELEASE_PATH }}/${{ env.WINDOWS_ZIP_NAME }}

notify-failure:
runs-on: ubuntu-latest
needs: build
if: failure()
steps:
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: |
πŸ”΄πŸ”΄πŸ”΄ Workflow ${{ github.workflow }} in repository ${{ github.repository }} was failed πŸ”΄πŸ”΄πŸ”΄.
fields: repo,message,author,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()
# notify-failure:
# runs-on: ubuntu-latest
# needs: build
# if: failure()
# steps:
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# text: |
# πŸ”΄πŸ”΄πŸ”΄ Workflow ${{ github.workflow }} in repository ${{ github.repository }} was failed πŸ”΄πŸ”΄πŸ”΄.
# fields: repo,message,author,eventName,ref,workflow
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# if: always()

0 comments on commit 0ad80b1

Please sign in to comment.