-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #342 - sagudev:mmake, r=jdm
Fix makefile style and fallback to general cc commands & temp windows builds fix - use `cc` instead of `gcc` and `c++` instead of `g++` for fallback on linux - format makefile - pin window ci to rust 1.66 due to #334 - update nightly version used for UWP
- Loading branch information
Showing
2 changed files
with
32 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,11 +73,12 @@ jobs: | |
.\install.ps1 -RunAsAdmin | ||
scoop install [email protected] --global | ||
echo "C:\ProgramData\scoop\shims;C:\Users\runneradmin\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: dtolnay/rust-toolchain@1.66 | ||
- name: Build uwp | ||
if: contains(matrix.target, 'uwp') | ||
shell: cmd | ||
env: | ||
TOOLCHAIN: nightly-2023-02-02 | ||
MOZTOOLS_PATH: 'C:\mozilla-build\msys\bin;C:\mozilla-build\bin' | ||
AUTOCONF: "C:/mozilla-build/msys/local/bin/autoconf-2.13" | ||
LINKER: "lld-link.exe" | ||
|
@@ -87,11 +88,11 @@ jobs: | |
PYTHON3: "C:\\mozilla-build\\python3\\python3.exe" | ||
LIBCLANG_PATH: "C:\\ProgramData\\scoop\\apps\\llvm\\current\\lib" | ||
run: | | ||
rustup install nightly-2022-11-20 | ||
rustup default nightly-2022-11-20 | ||
rustup component add rust-src | ||
rustup install ${{ env.TOOLCHAIN }} | ||
rustup default ${{ env.TOOLCHAIN }} | ||
rustup component add rust-src --toolchain ${{ env.TOOLCHAIN }}-x86_64-pc-windows-msvc | ||
rustc --version --verbose | ||
cargo build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }} | ||
cargo +${{ env.TOOLCHAIN }} build --verbose ${{ matrix.features }} -Z build-std=std,panic_abort --target ${{ matrix.target }} | ||
- name: Build Windows | ||
if: contains(matrix.target, 'uwp') != true | ||
shell: cmd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters