Skip to content

Commit

Permalink
CI: exec cargo update when inputs.cargo_update set true
Browse files Browse the repository at this point in the history
  • Loading branch information
L-jasmine committed Jan 19, 2025
1 parent c2180fa commit bc25f45
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
release_name:
description: "release page name"
required: true
cargo_update:
description: "update cargo"
required: false
default: "false"
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
Expand Down Expand Up @@ -46,6 +50,11 @@ jobs:
run: |
git config --global --add safe.directory $(pwd)
- name: Cargo update
if: ${{ github.event.inputs.cargo_update == 'true' }}
run: |
cargo update
- name: Build
run: |
export LIBTORCH=$(pwd)/libtorch
Expand Down Expand Up @@ -102,6 +111,11 @@ jobs:
run: |
git config --global --add safe.directory $(pwd)
- name: Cargo update
if: ${{ github.event.inputs.cargo_update == 'true' }}
run: |
cargo update
- name: Build
run: |
export LIBTORCH=$(pwd)/libtorch
Expand Down Expand Up @@ -143,6 +157,11 @@ jobs:
wget https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.4.0.zip
unzip libtorch-macos-arm64-2.4.0.zip
- name: Cargo update
if: ${{ github.event.inputs.cargo_update == 'true' }}
run: |
cargo update
- name: Build
run: |
export LIBTORCH=$(pwd)/libtorch
Expand Down

0 comments on commit bc25f45

Please sign in to comment.