Skip to content

Commit ec236d9

Browse files
committed
ci: add run-dev-setup option to action
1 parent 16228b7 commit ec236d9

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/actions/project-setup/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ inputs:
1010
description: "Additional Rust target to install"
1111
required: false
1212
default: ""
13+
run-dev-setup:
14+
description: "Run setup for dev environment"
15+
required: false
16+
default: "true"
1317

1418
runs:
1519
using: "composite"
@@ -65,6 +69,7 @@ runs:
6569
run: curl -LsSf https://astral.sh/uv/install.sh | sh
6670

6771
- name: Project setup
72+
if: ${{ inputs.run-dev-setup }} == "true"
6873
shell: bash
6974
run: make setup
7075

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ jobs:
102102

103103
- name: Project setup
104104
uses: ./.github/actions/project-setup
105+
with:
106+
run-dev-setup: "false"
105107

106108
- name: Cargo publish (dry-run)
107109
run: cargo publish -p encoderfile-core --dry-run
@@ -133,6 +135,8 @@ jobs:
133135

134136
- name: Project setup
135137
uses: ./.github/actions/project-setup
138+
with:
139+
run-dev-setup: "false"
136140

137141
- name: Install target
138142
run: rustup target add ${{ matrix.platform.target }}
@@ -144,7 +148,7 @@ jobs:
144148

145149
- name: Create release tarball
146150
run: |
147-
VERSION="${{ needs.tag.outputs.version }}"
151+
VERSION="${{ needs.create-tag.outputs.version }}"
148152
PLATFORM="${{ matrix.platform.target }}"
149153
150154
mkdir -p release
@@ -165,7 +169,7 @@ jobs:
165169
uses: actions/upload-artifact@v4
166170
with:
167171
name: encoderfile-${{ matrix.platform.target }}
168-
path: encoderfile-v${{ needs.tag.outputs.version }}-${{ matrix.platform.target }}.tar.gz
172+
path: encoderfile-v${{ needs.create-tag.outputs.version }}-${{ matrix.platform.target }}.tar.gz
169173

170174

171175
create-release:

0 commit comments

Comments
 (0)