Skip to content

Commit d4e9805

Browse files
authored
Add retention days to bundle smoke workflow (#5520)
* add retention days to bundle smoke * fix ci
1 parent 1766af4 commit d4e9805

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,15 @@ jobs:
210210
test -n "$(find target -name '*.deb' -print -quit)"
211211
test -n "$(find target -name '*.rpm' -print -quit)"
212212
- uses: actions/upload-artifact@v6
213-
if: always()
213+
if: failure()
214214
with:
215215
name: hotdog-linux-bundles
216216
path: |
217217
target/**/*.AppImage
218218
target/**/*.deb
219219
target/**/*.rpm
220220
if-no-files-found: ignore
221+
retention-days: 7
221222

222223
bundle-macos-smoke:
223224
needs: check-paths
@@ -244,13 +245,14 @@ jobs:
244245
test -n "$(find target -type d -name '*.app' -print -quit)"
245246
test -n "$(find target -type f -name '*.dmg' -print -quit)"
246247
- uses: actions/upload-artifact@v6
247-
if: always()
248+
if: failure()
248249
with:
249250
name: hotdog-macos-bundles
250251
path: |
251252
target/**/*.app
252253
target/**/*.dmg
253254
if-no-files-found: ignore
255+
retention-days: 7
254256

255257
windows-bundle-smoke:
256258
needs: check-paths
@@ -301,13 +303,14 @@ jobs:
301303
# run: |
302304
# Get-ChildItem -Path "$env:DIOXUS_WORKSPACE\target" -Recurse -Include "*.pdb","*.exe","*.dll" | Remove-Item -Force
303305
- uses: actions/upload-artifact@v6
304-
if: always()
306+
if: failure()
305307
with:
306308
name: hotdog-windows-bundles-smoke
307309
path: |
308310
${{ env.DIOXUS_WORKSPACE }}/target/**/*.msi
309311
${{ env.DIOXUS_WORKSPACE }}/target/**/*-setup.exe
310312
if-no-files-found: ignore
313+
retention-days: 7
311314

312315
windows:
313316
needs: check-paths
@@ -351,11 +354,11 @@ jobs:
351354
# run: |
352355
# Get-ChildItem -Path "$env:DIOXUS_WORKSPACE\target" -Recurse -Include "*.pdb","*.exe","*.dll" | Remove-Item -Force
353356
- uses: actions/upload-artifact@v6
354-
if: always()
357+
if: failure()
355358
with:
356359
name: playwright-report-windows
357360
path: ${{ env.DIOXUS_WORKSPACE }}/packages/playwright-tests/playwright-report/
358-
retention-days: 30
361+
retention-days: 7
359362

360363

361364
playwright:
@@ -410,11 +413,11 @@ jobs:
410413
npx playwright install
411414
npx playwright test
412415
- uses: actions/upload-artifact@v6
413-
if: always()
416+
if: failure()
414417
with:
415418
name: playwright-report-${{ matrix.toolchain }}-${{ runner.os }}
416419
path: ./packages/playwright-tests/playwright-report/
417-
retention-days: 30
420+
retention-days: 7
418421

419422

420423

packages/core-macro/src/props/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ Finally, call `.build()` to create the instance of `{name}`.
946946

947947
let field_name = field.extends_vec_ident().unwrap();
948948

949-
let descructuring = self.included_fields().map(|f| {
949+
let destructuring = self.included_fields().map(|f| {
950950
let name = f.name;
951951
quote!(#name)
952952
});
@@ -1048,7 +1048,7 @@ Finally, call `.build()` to create the instance of `{name}`.
10481048
____attr: impl dioxus_core::IntoAttributeValue<L>,
10491049
____volatile: bool
10501050
) -> Self {
1051-
let ( #(#descructuring,)* ) = self.fields;
1051+
let ( #(#destructuring,)* ) = self.fields;
10521052
self.#field_name.push(
10531053
dioxus_core::Attribute::new(
10541054
____name,
@@ -1084,7 +1084,7 @@ Finally, call `.build()` to create the instance of `{name}`.
10841084
ref builder_name, ..
10851085
} = *self;
10861086

1087-
let descructuring = self.included_fields().map(|f| {
1087+
let destructuring = self.included_fields().map(|f| {
10881088
if f.ordinal == field.ordinal {
10891089
quote!(_)
10901090
} else {
@@ -1214,7 +1214,7 @@ Finally, call `.build()` to create the instance of `{name}`.
12141214
#[allow(clippy::type_complexity)]
12151215
pub fn #field_name < #marker > (self, #field_name: #arg_type) -> #builder_name < #( #target_generics ),* > {
12161216
let #field_name = (#arg_expr,);
1217-
let ( #(#descructuring,)* ) = self.fields;
1217+
let ( #(#destructuring,)* ) = self.fields;
12181218
#builder_name {
12191219
#(#forward_fields,)*
12201220
fields: ( #(#reconstructing,)* ),
@@ -1410,7 +1410,7 @@ Finally, call `.build()` to create the instance of `{name}`.
14101410
);
14111411
});
14121412

1413-
let descructuring = self.included_fields().map(|f| f.name);
1413+
let destructuring = self.included_fields().map(|f| f.name);
14141414

14151415
let helper_trait_name = &self.conversion_helper_trait_name;
14161416
// The default of a field can refer to earlier-defined fields, which we handle by
@@ -1530,7 +1530,7 @@ Finally, call `.build()` to create the instance of `{name}`.
15301530
impl #impl_generics #builder_name #modified_ty_generics #where_clause {
15311531
#doc
15321532
pub fn build(self) -> #name #ty_generics {
1533-
let ( #(#descructuring,)* ) = self.fields;
1533+
let ( #(#destructuring,)* ) = self.fields;
15341534
#( #assignments )*
15351535
#name {
15361536
inner: #original_name {
@@ -1547,7 +1547,7 @@ Finally, call `.build()` to create the instance of `{name}`.
15471547
impl #impl_generics #builder_name #modified_ty_generics #where_clause {
15481548
#doc
15491549
pub fn build(self) -> #name #ty_generics {
1550-
let ( #(#descructuring,)* ) = self.fields;
1550+
let ( #(#destructuring,)* ) = self.fields;
15511551
#( #assignments )*
15521552
#name {
15531553
#( #field_names ),*

0 commit comments

Comments
 (0)