Skip to content

Commit 1002587

Browse files
Fix Release workflow (#68)
1 parent 5eadd67 commit 1002587

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626

2727
- name: Create tag
2828
run: |
29+
git fetch --tags --no-recurse-submodules
2930
if [ ! $(git tag -l ${{ inputs.release_tag }}) ]; then
3031
git tag ${{ inputs.release_tag }}
3132
git push origin ${{ inputs.release_tag }}
@@ -96,6 +97,13 @@ jobs:
9697
echo 'linker = "aarch64-linux-gnu-gcc"' >> .cargo/config.toml
9798
fi
9899
100+
- name: Generate Cargo.lock if needed
101+
shell: bash
102+
run: |
103+
if [ ! -f "Cargo.lock" ]; then
104+
cargo generate-lockfile
105+
fi
106+
99107
- name: Build darklua binary
100108
run: cargo build --locked --release --target ${{ matrix.cargo-target }}
101109
env:

0 commit comments

Comments
 (0)