Skip to content

Commit e2aa23a

Browse files
Merge pull request #164 from erichdongubler-mozilla/erichdongubler/push-xnsqlxmtsyqw
Make CI happy again
2 parents 6f4cd9a + 2929a51 commit e2aa23a

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
jobs:
4848
# Run 'dist plan' (or host) to determine what tasks we need to do
4949
plan:
50-
runs-on: "ubuntu-20.04"
50+
runs-on: "ubuntu-latest"
5151
outputs:
5252
val: ${{ steps.plan.outputs.manifest }}
5353
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
@@ -168,7 +168,7 @@ jobs:
168168
needs:
169169
- plan
170170
- build-local-artifacts
171-
runs-on: "ubuntu-20.04"
171+
runs-on: "ubuntu-latest"
172172
env:
173173
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174174
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
@@ -218,7 +218,7 @@ jobs:
218218
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
219219
env:
220220
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221-
runs-on: "ubuntu-20.04"
221+
runs-on: "ubuntu-latest"
222222
outputs:
223223
val: ${{ steps.host.outputs.manifest }}
224224
steps:
@@ -282,7 +282,7 @@ jobs:
282282
# still allowing individual publish jobs to skip themselves (for prereleases).
283283
# "host" however must run to completion, no skipping allowed!
284284
if: ${{ always() && needs.host.result == 'success' }}
285-
runs-on: "ubuntu-20.04"
285+
runs-on: "ubuntu-latest"
286286
env:
287287
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
288288
steps:

dist-workspace.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ pr-run-mode = "plan"
1717
install-updater = false
1818
# Path that installers should place binaries in
1919
install-path = "CARGO_HOME"
20+
21+
[dist.github-custom-runners]
22+
global = "ubuntu-latest"

moz-webgpu-cts/src/wpt/metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ where
870870
use std::borrow::Cow;
871871

872872
#[derive(Clone, Debug, Default, Eq, PartialEq)]
873-
struct TagsDisplay<'a>(Cow<'a, Vec<String>>);
873+
struct TagsDisplay<'a>(Cow<'a, [String]>);
874874

875875
impl Display for TagsDisplay<'_> {
876876
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
@@ -879,7 +879,7 @@ where
879879
}
880880
}
881881

882-
let tags_ref = tags.as_ref();
882+
let tags_ref = tags.as_deref();
883883
let tags_ref = tags_ref.map(Cow::Borrowed).map(TagsDisplay);
884884

885885
write_normalized(f, &indent, TAGS_IDENT, tags_ref)?;

moz-webgpu-cts/src/wpt/metadata/properties.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::{
22
collections::BTreeMap,
33
fmt::{self, Debug, Display, Formatter},
44
num::NonZeroUsize,
5-
ops::{BitOr, BitOrAssign, Index, IndexMut},
5+
ops::{BitOr, BitOrAssign, Deref, Index, IndexMut},
66
};
77

88
use enum_map::EnumMap;
@@ -301,9 +301,12 @@ impl<T> ExpandedPropertyValue<T> {
301301
inner
302302
}
303303

304-
pub(crate) fn as_ref(&self) -> ExpandedPropertyValue<&T> {
304+
pub(crate) fn as_deref(&self) -> ExpandedPropertyValue<&<T as Deref>::Target>
305+
where
306+
T: Deref,
307+
{
305308
ExpandedPropertyValue::from_query(|platform, build_profile| {
306-
&self[(platform, build_profile)]
309+
&*self[(platform, build_profile)]
307310
})
308311
}
309312
}

whippit/src/metadata/properties.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ where
5858
/// [`File`]: crate::metadata::File
5959
/// [`Test`]: crate::metadata::Test
6060
/// [`Subtest`]: crate::metadata::Subtest
61-
/// [`File::parser`]: crate::metadata::File::parser
6261
pub trait Properties<'a>
6362
where
6463
Self: Clone + Default + Sized,

0 commit comments

Comments
 (0)