Skip to content

Commit

Permalink
fetch tag fix for tag builds (and only get the first related tag) (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 authored Sep 20, 2024
1 parent 5be9f83 commit 74d6e8c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
ref: ${{ steps.get-branch.outputs.branch }}
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand Down
30 changes: 20 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Prepare
run: |
platform=${{ matrix.platform.platform }}
Expand Down Expand Up @@ -84,8 +85,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Prepare
run: |
echo "PLATFORMS=linux/amd64,linux/arm64" >> $GITHUB_ENV
Expand Down Expand Up @@ -213,8 +215,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -246,8 +249,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -287,8 +291,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -316,8 +321,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -347,8 +353,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -378,8 +385,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -418,8 +426,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -474,8 +483,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: true
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.rust-target }}
- uses: davidB/rust-cargo-make@v1
Expand Down

0 comments on commit 74d6e8c

Please sign in to comment.