Build on latest macOS
This commit is contained in:
parent
0d9e56bfc2
commit
c0f8fa65a4
|
@ -12,9 +12,9 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
os: [macos-11.0, ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: macos-latest
|
||||
- os: macos-11.0
|
||||
ARCH: macos-x86_64
|
||||
- os: ubuntu-latest
|
||||
ARCH: linux-x86_64
|
||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
os: [macos-11.0, ubuntu-latest, windows-latest]
|
||||
python: [3.5, 3.6, 3.7, 3.8, 3.9]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
|
@ -83,9 +83,10 @@ ${(['html', 'svg'] as const).map(ns => ` ${ns}: ` + (() => {
|
|||
if (globalAttr) {
|
||||
return `Some(AttrMapEntry::AllNamespaceElements(${rsTagAttr(globalAttr)}))`;
|
||||
}
|
||||
const entries = Object.entries(tagsMap);
|
||||
return `Some({
|
||||
let mut m = HashMap::<&'static [u8], AttributeMinification>::new();
|
||||
${Object.entries(tagsMap).map(([tagName, tagAttr]) => ` m.insert(b\"${tagName}\", ${rsTagAttr(tagAttr)});`).join('\n')}
|
||||
let ${entries.length ? 'mut' : ''} m = HashMap::<&'static [u8], AttributeMinification>::new();
|
||||
${entries.map(([tagName, tagAttr]) => ` m.insert(b\"${tagName}\", ${rsTagAttr(tagAttr)});`).join('\n')}
|
||||
AttrMapEntry::SpecificNamespaceElements(m)
|
||||
})`;
|
||||
})() + ',').join('\n')}
|
||||
|
|
|
@ -3,3 +3,9 @@ rustflags = [
|
|||
"-C", "link-arg=-undefined",
|
||||
"-C", "link-arg=dynamic_lookup",
|
||||
]
|
||||
|
||||
[target.aarch64-apple-darwin]
|
||||
rustflags = [
|
||||
"-C", "link-arg=-undefined",
|
||||
"-C", "link-arg=dynamic_lookup",
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue