1.71.0 and remove local registry
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
59bc97c2f5
commit
71e3f86024
75
.github/workflows/flutter-build.yml
vendored
75
.github/workflows/flutter-build.yml
vendored
@ -682,21 +682,6 @@ jobs:
|
|||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
||||||
cache-directories: "/opt/rust-registry"
|
cache-directories: "/opt/rust-registry"
|
||||||
|
|
||||||
- name: Install local registry
|
|
||||||
run: |
|
|
||||||
mkdir -p /opt/rust-registry
|
|
||||||
cargo install cargo-local-registry
|
|
||||||
|
|
||||||
- name: Build local registry
|
|
||||||
uses: nick-fields/retry@v2
|
|
||||||
id: build-local-registry
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
max_attempts: 3
|
|
||||||
timeout_minutes: 15
|
|
||||||
retry_on: error
|
|
||||||
command: cargo local-registry --sync ./Cargo.lock /opt/rust-registry
|
|
||||||
|
|
||||||
- name: Disable rust bridge build
|
- name: Disable rust bridge build
|
||||||
run: |
|
run: |
|
||||||
# only build cdylib
|
# only build cdylib
|
||||||
@ -746,19 +731,15 @@ jobs:
|
|||||||
# rust
|
# rust
|
||||||
pushd /opt
|
pushd /opt
|
||||||
# do not use rustup, because memory overflow in qemu
|
# do not use rustup, because memory overflow in qemu
|
||||||
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.70.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.71.0-${{ matrix.job.target }}.tar.gz
|
||||||
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
||||||
cd rust-1.70.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-1.71.0-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.70.0-${{ matrix.job.target }}
|
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||||
replace-with = 'local-registry'
|
|
||||||
|
|
||||||
[source.local-registry]
|
|
||||||
local-registry = '/opt/rust-registry/'
|
|
||||||
""" > ~/.cargo/config
|
""" > ~/.cargo/config
|
||||||
cat ~/.cargo/config
|
cat ~/.cargo/config
|
||||||
# start build
|
# start build
|
||||||
@ -853,21 +834,6 @@ jobs:
|
|||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
||||||
cache-directories: "/opt/rust-registry"
|
cache-directories: "/opt/rust-registry"
|
||||||
|
|
||||||
- name: Install local registry
|
|
||||||
run: |
|
|
||||||
mkdir -p /opt/rust-registry
|
|
||||||
cargo install cargo-local-registry
|
|
||||||
|
|
||||||
- name: Build local registry
|
|
||||||
uses: nick-fields/retry@v2
|
|
||||||
id: build-local-registry
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
max_attempts: 3
|
|
||||||
timeout_minutes: 15
|
|
||||||
retry_on: error
|
|
||||||
command: cargo local-registry --sync ./Cargo.lock /opt/rust-registry
|
|
||||||
|
|
||||||
- name: Disable rust bridge build
|
- name: Disable rust bridge build
|
||||||
run: |
|
run: |
|
||||||
# only build cdylib
|
# only build cdylib
|
||||||
@ -915,19 +881,15 @@ jobs:
|
|||||||
# rust
|
# rust
|
||||||
pushd /opt
|
pushd /opt
|
||||||
# do not use rustup, because memory overflow in qemu
|
# do not use rustup, because memory overflow in qemu
|
||||||
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.70.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.71.0-${{ matrix.job.target }}.tar.gz
|
||||||
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
||||||
cd rust-1.70.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-1.71.0-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.70.0-${{ matrix.job.target }}
|
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||||
replace-with = 'local-registry'
|
|
||||||
|
|
||||||
[source.local-registry]
|
|
||||||
local-registry = '/opt/rust-registry/'
|
|
||||||
""" > ~/.cargo/config
|
""" > ~/.cargo/config
|
||||||
cat ~/.cargo/config
|
cat ~/.cargo/config
|
||||||
# start build
|
# start build
|
||||||
@ -1002,21 +964,6 @@ jobs:
|
|||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
||||||
cache-directories: "/opt/rust-registry"
|
cache-directories: "/opt/rust-registry"
|
||||||
|
|
||||||
- name: Install local registry
|
|
||||||
run: |
|
|
||||||
mkdir -p /opt/rust-registry
|
|
||||||
cargo install cargo-local-registry
|
|
||||||
|
|
||||||
- name: Build local registry
|
|
||||||
uses: nick-fields/retry@v2
|
|
||||||
id: build-local-registry
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
max_attempts: 3
|
|
||||||
timeout_minutes: 15
|
|
||||||
retry_on: error
|
|
||||||
command: cargo local-registry --sync ./Cargo.lock /opt/rust-registry
|
|
||||||
|
|
||||||
- name: Restore vcpkg files
|
- name: Restore vcpkg files
|
||||||
uses: actions/download-artifact@master
|
uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
@ -1048,19 +995,15 @@ jobs:
|
|||||||
# rust
|
# rust
|
||||||
pushd /opt
|
pushd /opt
|
||||||
# do not use rustup, because memory overflow in qemu
|
# do not use rustup, because memory overflow in qemu
|
||||||
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.70.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-1.71.0-${{ matrix.job.target }}.tar.gz
|
||||||
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
tar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz
|
||||||
cd rust-1.70.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-1.71.0-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.70.0-${{ matrix.job.target }}
|
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||||
replace-with = 'local-registry'
|
|
||||||
|
|
||||||
[source.local-registry]
|
|
||||||
local-registry = '/opt/rust-registry/'
|
|
||||||
""" > ~/.cargo/config
|
""" > ~/.cargo/config
|
||||||
cat ~/.cargo/config
|
cat ~/.cargo/config
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user