Skip to content

Commit

Permalink
No UWP (#395)
Browse files Browse the repository at this point in the history
* No UWP in CI

* Remove uwp from everywhere
  • Loading branch information
sagudev authored Sep 11, 2023
1 parent d7f6f30 commit 3858f26
Show file tree
Hide file tree
Showing 46 changed files with 42 additions and 1,359 deletions.
6 changes: 0 additions & 6 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@ linker = "lld-link.exe"
[target.i686-pc-windows-msvc]
linker = "lld-link.exe"

[target.x86_64-uwp-windows-msvc]
linker = "lld-link.exe"

[target.aarch64-pc-windows-msvc]
linker = "lld-link.exe"

[target.aarch64-uwp-windows-msvc]
linker = "lld-link.exe"
25 changes: 2 additions & 23 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ jobs:
RUSTC_WRAPPER: sccache
CCACHE: sccache
SCCACHE_GHA_ENABLED: "true"
SCCACHE_VERSION: "v0.4.0"
steps:
- uses: actions/checkout@v3
- name: Install deps
run: brew install python llvm yasm
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: ${{ env.SCCACHE_VERSION }}
- name: Build
run: |
cargo build --verbose ${{ matrix.features }}
Expand All @@ -42,7 +39,6 @@ jobs:
RUSTC_WRAPPER: "sccache"
CCACHE: sccache
SCCACHE_GHA_ENABLED: "true"
SCCACHE_VERSION: "v0.4.0"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -56,8 +52,6 @@ jobs:
sudo apt install llvm -y
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: ${{ env.SCCACHE_VERSION }}
- name: Build
run: |
cargo build --verbose ${{ matrix.features }}
Expand All @@ -68,38 +62,23 @@ jobs:
fail-fast: false
matrix:
features: ["--features debugmozjs", ""]
#target: [""]
target: ["", "aarch64-uwp-windows-msvc", "x86_64-uwp-windows-msvc"]
env:
LINKER: "lld-link.exe"
CC: "clang-cl"
CXX: "clang-cl"
MOZTOOLS_PATH: "${{ github.workspace }}\\target\\dependencies\\moztools-4.0"
CCACHE: sccache
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
if: (!contains(matrix.target, 'uwp'))
- uses: dtolnay/rust-toolchain@master
if: contains(matrix.target, 'uwp')
with:
toolchain: "nightly-2023-02-02"
components: rust-src
- name: Install deps
run: |
curl -SL "https://github.com/servo/servo-build-deps/releases/download/msvc-deps/moztools-4.0.zip" --create-dirs -o target/dependencies/moztools.zip
cd target/dependencies && unzip -qo moztools.zip -d .
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: ${{ env.SCCACHE_VERSION }}
- name: Build uwp
if: contains(matrix.target, 'uwp')
shell: cmd
run: |
rustc --version --verbose
cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }}
- name: Build Windows
if: contains(matrix.target, 'uwp') != true
shell: cmd
run: |
cargo test --verbose ${{ matrix.features }}
Expand Down
1 change: 0 additions & 1 deletion mozjs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ doctest = false
[features]
debugmozjs = []
profilemozjs = []
uwp = []
jitspew = []

[dependencies]
Expand Down
3 changes: 0 additions & 3 deletions mozjs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ fn build_jsapi(build_dir: &Path) {
if target.contains("gnu") {
println!("cargo:rustc-link-lib=stdc++");
}
if cfg!(feature = "uwp") {
println!("cargo:rustc-link-lib=mincore");
}
} else if target.contains("apple") || target.contains("freebsd") {
println!("cargo:rustc-link-lib=c++");
} else {
Expand Down
Loading

0 comments on commit 3858f26

Please sign in to comment.