Add a -Clink-dead-code supplemental builds without features, and don't install Python 2 on Windows anymore
@@ -82,7 +82,7 @@ jobs:
# run: |
# cargo build -vv --features "gl"
- windows-link-dead-code:
+ windows-link-dead-code-gpu:
runs-on: windows-2022
steps:
@@ -95,11 +95,32 @@ jobs:
with:
rust-version: stable
- - name: Setup Python 2
- uses: actions/setup-python@v2
+ - name: Python Version
+ run: python --version
+
+ - name: Install LLVM
+ run: choco install llvm
+
+ - name: 'Build with RUSTFLAGS=-Clink-dead-code (#318)'
+ run: |
+ # See https://github.com/rust-lang/rust/issues/90056 why we have to provide a target.
+ # proc-macro-error 1.0.4 causes a no metadata found: failed to decompress metadata error.
+ cargo build --features gl,vulkan,d3d,textlayout,webp --target x86_64-pc-windows-msvc
+ env:
+ RUSTFLAGS: '-Clink-dead-code'
+
+ windows-link-dead-code:
+ runs-on: windows-2022
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Install Rust
+ uses: hecrj/setup-rust-action@master
with:
- python-version: '2.7.18'
- architecture: 'x64'
+ rust-version: stable
- name: Python Version
run: python --version
@@ -111,7 +132,7 @@ jobs:
run: |
# See https://github.com/rust-lang/rust/issues/90056 why we have to provide a target.
# proc-macro-error 1.0.4 causes a no metadata found: failed to decompress metadata error.
- cargo build --features gl,vulkan,d3d,textlayout,webp --target x86_64-pc-windows-msvc
+ cargo build --target x86_64-pc-windows-msvc
env:
RUSTFLAGS: '-Clink-dead-code'
@@ -128,12 +149,6 @@ jobs:
with:
rust-version: nightly
- - name: Setup Python 2
- uses: actions/setup-python@v2
- with:
- python-version: '2.7.18'
- architecture: 'x64'
-
- name: Python Version
run: python --version
