Skip to content

Commit 3858f26

Browse files
authored
No UWP (#395)
* No UWP in CI * Remove uwp from everywhere
1 parent d7f6f30 commit 3858f26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+42
-1359
lines changed

.cargo/config renamed to .cargo/config.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ linker = "lld-link.exe"
44
[target.i686-pc-windows-msvc]
55
linker = "lld-link.exe"
66

7-
[target.x86_64-uwp-windows-msvc]
8-
linker = "lld-link.exe"
9-
107
[target.aarch64-pc-windows-msvc]
118
linker = "lld-link.exe"
12-
13-
[target.aarch64-uwp-windows-msvc]
14-
linker = "lld-link.exe"

.github/workflows/rust.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ jobs:
2424
RUSTC_WRAPPER: sccache
2525
CCACHE: sccache
2626
SCCACHE_GHA_ENABLED: "true"
27-
SCCACHE_VERSION: "v0.4.0"
2827
steps:
2928
- uses: actions/checkout@v3
3029
- name: Install deps
3130
run: brew install python llvm yasm
3231
- name: Run sccache-cache
3332
uses: mozilla-actions/sccache-action@v0.0.3
34-
with:
35-
version: ${{ env.SCCACHE_VERSION }}
3633
- name: Build
3734
run: |
3835
cargo build --verbose ${{ matrix.features }}
@@ -42,7 +39,6 @@ jobs:
4239
RUSTC_WRAPPER: "sccache"
4340
CCACHE: sccache
4441
SCCACHE_GHA_ENABLED: "true"
45-
SCCACHE_VERSION: "v0.4.0"
4642
runs-on: ubuntu-latest
4743
strategy:
4844
fail-fast: false
@@ -56,8 +52,6 @@ jobs:
5652
sudo apt install llvm -y
5753
- name: Run sccache-cache
5854
uses: mozilla-actions/sccache-action@v0.0.3
59-
with:
60-
version: ${{ env.SCCACHE_VERSION }}
6155
- name: Build
6256
run: |
6357
cargo build --verbose ${{ matrix.features }}
@@ -68,38 +62,23 @@ jobs:
6862
fail-fast: false
6963
matrix:
7064
features: ["--features debugmozjs", ""]
71-
#target: [""]
72-
target: ["", "aarch64-uwp-windows-msvc", "x86_64-uwp-windows-msvc"]
7365
env:
7466
LINKER: "lld-link.exe"
7567
CC: "clang-cl"
7668
CXX: "clang-cl"
7769
MOZTOOLS_PATH: "${{ github.workspace }}\\target\\dependencies\\moztools-4.0"
70+
CCACHE: sccache
71+
SCCACHE_GHA_ENABLED: "true"
7872
steps:
7973
- uses: actions/checkout@v3
8074
- uses: dtolnay/rust-toolchain@stable
81-
if: (!contains(matrix.target, 'uwp'))
82-
- uses: dtolnay/rust-toolchain@master
83-
if: contains(matrix.target, 'uwp')
84-
with:
85-
toolchain: "nightly-2023-02-02"
86-
components: rust-src
8775
- name: Install deps
8876
run: |
8977
curl -SL "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/moztools-4.0.zip" --create-dirs -o target/dependencies/moztools.zip
9078
cd target/dependencies && unzip -qo moztools.zip -d .
9179
- name: Run sccache-cache
9280
uses: mozilla-actions/sccache-action@v0.0.3
93-
with:
94-
version: ${{ env.SCCACHE_VERSION }}
95-
- name: Build uwp
96-
if: contains(matrix.target, 'uwp')
97-
shell: cmd
98-
run: |
99-
rustc --version --verbose
100-
cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }}
10181
- name: Build Windows
102-
if: contains(matrix.target, 'uwp') != true
10382
shell: cmd
10483
run: |
10584
cargo test --verbose ${{ matrix.features }}

mozjs/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ doctest = false
2525
[features]
2626
debugmozjs = []
2727
profilemozjs = []
28-
uwp = []
2928
jitspew = []
3029

3130
[dependencies]

mozjs/build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ fn build_jsapi(build_dir: &Path) {
231231
if target.contains("gnu") {
232232
println!("cargo:rustc-link-lib=stdc++");
233233
}
234-
if cfg!(feature = "uwp") {
235-
println!("cargo:rustc-link-lib=mincore");
236-
}
237234
} else if target.contains("apple") || target.contains("freebsd") {
238235
println!("cargo:rustc-link-lib=c++");
239236
} else {

0 commit comments

Comments
 (0)