Skip to content

Commit 147f106

Browse files
committed
ci/cd: remove commented code + name sections
1 parent 05ded77 commit 147f106

File tree

6 files changed

+41
-21
lines changed

6 files changed

+41
-21
lines changed

.github/_publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@ jobs:
1717
- os: ubuntu-latest
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/download-artifact@v4
20+
#
21+
- name: "Checkout sources"
22+
uses: actions/checkout@master
23+
#
24+
- name: "Download artifacts"
25+
uses: actions/download-artifact@v4
2226
with:
2327
merge-multiple: true
28+
#
2429
- name: "Echo Tag Ref(s)"
2530
run: |
2631
echo "Tag name for GITHUB_REF_NAME: $GITHUB_REF_NAME"
2732
echo "Tag name from github.ref_name ${{ github.ref_name }}"
28-
- uses: svenstaro/upload-release-action@master
33+
#
34+
- name: "Upload Release Assets"
35+
uses: svenstaro/upload-release-action@master
2936
if: env.preview == 'false'
3037
with:
3138
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ jobs:
141141
with:
142142
toolchain: ${{ env.RUST_TOOLCHAIN }}
143143
targets: ${{ matrix.target }}
144-
# - name: "Setup Rust toolchain"
145-
# run: rustup toolchain install nightly --profile minimal --target ${{ matrix.target }} --no-self-update
146-
# - name: "Ensure nightly rustfmt installed"
147-
# run: rustup component add rustfmt --toolchain nightly
148144
########## Action
149145
- name: "Run Cargo fmt"
150146
run: cargo +nightly fmt --all

.github/workflows/docs.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,15 @@ jobs:
136136
env:
137137
RUSTDOCFLAGS: "-D warnings"
138138
run: cargo doc --no-deps --all-features --all --target ${{ matrix.target }} --document-private-items
139+
#
139140
- name: "Ensure Zip Installed on Unix"
140141
run: |
141142
if ! command -v zip &> /dev/null
142143
then
143144
sudo apt-get install zip
144145
fi
145146
zip --version
147+
#
146148
- name: "Upload artifact"
147149
uses: actions/upload-artifact@v4
148150
with:
@@ -207,6 +209,7 @@ jobs:
207209
env:
208210
RUSTDOCFLAGS: "-D warnings"
209211
run: cargo doc --no-deps --all-features --all --target ${{ matrix.target }} --document-private-items
212+
#
210213
- name: "Upload artifact"
211214
uses: actions/upload-artifact@v4
212215
with:
@@ -222,22 +225,29 @@ jobs:
222225
runs-on: ubuntu-latest
223226
needs: [package-docs-unix, package-docs-windows]
224227
steps:
228+
#
229+
- name: "Generate docs body"
225230
- run: |
226231
echo 'DOCS_BODY<<EOF' >> $GITHUB_ENV
227232
echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
228233
echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
229234
echo "EOF" >> $GITHUB_ENV
235+
#
230236
- name: "Checkout sources"
231-
uses: actions/checkout@v4
232-
- uses: actions/download-artifact@v4
237+
uses: actions/checkout@master
238+
#
239+
- name: "Download artifacts"
240+
uses: actions/download-artifact@v4
233241
id: artifact-download-step
234242
with:
235243
merge-multiple: true
244+
#
236245
- name: "Update tag for docs"
237246
run: |
238247
git config user.name "github-actions[bot]"
239248
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
240249
git tag --force docs && git push --force origin tag docs
250+
#
241251
- name: "Get directory structure"
242252
shell: bash
243253
run: |
@@ -248,12 +258,14 @@ jobs:
248258
echo \n\n
249259
echo "tree from github workspace call"
250260
tree -afh ${{ github.workspace }}
261+
#
251262
- name: Zip - Documentation
252263
shell: bash
253264
run: |
254265
cd "${{ env.PROJECT_NAME }}"
255266
zip -r "../${{ env.PROJECT_NAME }}.zip" .
256267
cd ..
268+
#
257269
- name: "Docs - draft"
258270
uses: softprops/action-gh-release@v2
259271
with:

.github/workflows/draft.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
cd "${ARTIFACT_NAME}"
9393
zip -r "../${ARTIFACT_NAME}.zip" .
9494
cd ..
95+
#
9596
- name: "Upload artifact"
9697
uses: actions/upload-artifact@v4
9798
with:
@@ -154,6 +155,7 @@ jobs:
154155
########## Action
155156
- name: "Build"
156157
run: cargo build --release --locked --target ${{ matrix.target }}
158+
#
157159
- name: "Pack artifact"
158160
shell: powershell
159161
working-directory: ${{ github.workspace }}
@@ -166,6 +168,7 @@ jobs:
166168
Copy-Item -Path "target\${{ matrix.target }}\release\${{ env.PROJECT_NAME }}.exe" -Destination "$ARTIFACT_NAME"
167169
Copy-Item -Path "README.md", "$LICENSE_FILE" -Destination "$ARTIFACT_NAME"
168170
Compress-Archive -Path "$ARTIFACT_NAME\*" -Destination "$ARTIFACT_NAME.zip"
171+
#
169172
- name: "Upload artifact"
170173
uses: actions/upload-artifact@v4
171174
with:
@@ -175,6 +178,7 @@ jobs:
175178
compression-level: '9'
176179
# overwrite: 'true'
177180
draft:
181+
name: "Draft - draft"
178182
if: startsWith(github.ref, 'refs/tags/')
179183
permissions:
180184
contents: write
@@ -185,7 +189,8 @@ jobs:
185189
- name: "Checkout sources"
186190
uses: actions/checkout@v4
187191
#
188-
- uses: actions/download-artifact@v4
192+
- name: "Download artifacts"
193+
uses: actions/download-artifact@v4
189194
id: artifact-download-step
190195
with:
191196
merge-multiple: true
@@ -203,6 +208,7 @@ jobs:
203208
# body_path: ${{ github.workspace }}-CHANGELOG.txt ## For adding changelog content
204209

205210
nightly:
211+
name: "Draft - nightly"
206212
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
207213
permissions:
208214
contents: write
@@ -214,16 +220,22 @@ jobs:
214220
echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
215221
echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
216222
echo "EOF" >> $GITHUB_ENV
217-
- uses: actions/checkout@v4
218-
- uses: actions/download-artifact@v4
223+
#
224+
- name: "Checkout sources"
225+
uses: actions/checkout@v4
226+
#
227+
- name: "Download artifacts"
228+
uses: actions/download-artifact@v4
219229
with:
220230
merge-multiple: true
231+
#
221232
- name: "Update the tag"
222233
run: |
223234
git config user.name "github-actions[bot]"
224235
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
225236
git tag --force nightly && git push --force origin tag nightly
226-
- name: "Nightly"
237+
#
238+
- name: "Realse Nightly"
227239
uses: softprops/action-gh-release@v2
228240
with:
229241
tag_name: nightly

.github/workflows/format.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,9 @@ jobs:
7474
with:
7575
toolchain: ${{ env.RUST_TOOLCHAIN }}
7676
targets: ${{ matrix.target }}
77-
# - name: "Setup Rust toolchain"
78-
# run: rustup toolchain install nightly --profile minimal --target ${{ matrix.target }} --no-self-update
79-
# - name: "Ensure nightly rustfmt installed"
80-
# run: rustup component add rustfmt --toolchain nightly
8177
########## Action
8278
- name: "Run Cargo fmt"
8379
run: cargo +nightly fmt --all
80+
#
8481
- name: "Build project"
8582
run: cargo build --release --all

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ jobs:
7373
with:
7474
toolchain: ${{ env.RUST_TOOLCHAIN }}
7575
targets: ${{ matrix.target }}
76-
# - name: "Setup Rust toolchain"
77-
# run: rustup toolchain install nightly --profile minimal --target ${{ matrix.target }} --no-self-update
78-
# - name: "Ensure nightly rustfmt installed"
79-
# run: rustup component add rustfmt --toolchain nightly
8076
########## Action
8177
- name: "Run Cargo test"
8278
run: cargo test --all --target ${{ matrix.target }}

0 commit comments

Comments
 (0)