mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Update nightly toolchain
This commit is contained in:
parent
899d62c04a
commit
97916ca710
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
@ -81,8 +81,8 @@ jobs:
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Prepare Rust Toolchain # This is required because we are recompiling the stdlib
|
||||
run: |
|
||||
rustup install nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup install nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
- name: Build
|
||||
run: tools/build-android
|
||||
- uses: actions/upload-artifact@v2
|
||||
@ -112,8 +112,8 @@ jobs:
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Prepare Rust Toolchain # This is required because we are recompiling the stdlib
|
||||
run: |
|
||||
rustup install nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup install nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
- name: NPM Install
|
||||
run: npm install
|
||||
- name: Build
|
||||
@ -149,8 +149,8 @@ jobs:
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Prepare Rust Toolchain # This is required because we are recompiling the stdlib
|
||||
run: |
|
||||
rustup install nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup install nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
- name: NPM Install
|
||||
run: npm install
|
||||
- name: Build
|
||||
|
||||
@ -25,7 +25,7 @@ cargo install cargo-apk
|
||||
|
||||
if [ "$run" = true ] ; then
|
||||
# -Zbuild-std is required for latest NDK: https://github.com/rust-windowing/android-ndk-rs/pull/189
|
||||
cargo +nightly-2022-02-26 apk run --lib -Zbuild-std
|
||||
cargo +nightly-2022-04-04 apk run --lib -Zbuild-std
|
||||
else
|
||||
cargo +nightly-2022-02-26 apk build --lib -Zbuild-std
|
||||
cargo +nightly-2022-04-04 apk build --lib -Zbuild-std
|
||||
fi
|
||||
|
||||
@ -17,9 +17,9 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
export RUSTUP_TOOLCHAIN=nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
export RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
|
||||
rustup component add rust-src --toolchain nightly-2022-02-26-x86_64-unknown-linux-gnu
|
||||
rustup component add rust-src --toolchain nightly-2022-04-04-x86_64-unknown-linux-gnu
|
||||
|
||||
function plain_build() {
|
||||
cargo build --features "$webgl_flag" --target wasm32-unknown-unknown -Z build-std=std,panic_abort
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
"description": "A mapr demo",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "RUSTUP_TOOLCHAIN=nightly-2022-02-26-x86_64-unknown-linux-gnu webpack-dev-server --mode=development",
|
||||
"build": "RUSTUP_TOOLCHAIN=nightly-2022-02-26-x86_64-unknown-linux-gnu webpack --mode=development",
|
||||
"production-build": "RUSTUP_TOOLCHAIN=nightly-2022-02-26-x86_64-unknown-linux-gnu webpack --mode=production",
|
||||
"start": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack-dev-server --mode=development",
|
||||
"build": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack --mode=development",
|
||||
"production-build": "RUSTUP_TOOLCHAIN=nightly-2022-04-04-x86_64-unknown-linux-gnu webpack --mode=production",
|
||||
"webgl-start": "npm run start -- --env webgl",
|
||||
"webgl-start-production": "npm run webgl-start -- --mode=production",
|
||||
"webgl-build": "npm run build -- --env webgl",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user