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