diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfc09f4..0772470 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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]+*" @@ -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 @@ -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 @@ -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