opt linux ci: remove unused and use stable version
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
552871d98c
commit
195018e22d
48
.github/workflows/flutter-build.yml
vendored
48
.github/workflows/flutter-build.yml
vendored
@ -676,11 +676,10 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
profile: minimal # minimal component installation (ie, no documentation)
|
profile: minimal # minimal component installation (ie, no documentation)
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Save Rust toolchain version
|
||||||
with:
|
run: |
|
||||||
prefix-key: rustdesk-lib-cache
|
RUST_TOOLCHAIN_VERSION=$(cargo --version | awk '{print $2}')
|
||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> $GITHUB_ENV
|
||||||
cache-directories: "/opt/rust-registry"
|
|
||||||
|
|
||||||
- name: Disable rust bridge build
|
- name: Disable rust bridge build
|
||||||
run: |
|
run: |
|
||||||
@ -714,7 +713,6 @@ jobs:
|
|||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}:/workspace"
|
--volume "${PWD}:/workspace"
|
||||||
--volume "/opt/artifacts:/opt/artifacts"
|
--volume "/opt/artifacts:/opt/artifacts"
|
||||||
--volume "/opt/rust-registry:/opt/rust-registry"
|
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
install: |
|
install: |
|
||||||
apt update -y
|
apt update -y
|
||||||
@ -731,10 +729,10 @@ 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.71.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ 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.71.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
rm -rf rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
@ -828,11 +826,10 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
profile: minimal # minimal component installation (ie, no documentation)
|
profile: minimal # minimal component installation (ie, no documentation)
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Save Rust toolchain version
|
||||||
with:
|
run: |
|
||||||
prefix-key: rustdesk-lib-cache
|
RUST_TOOLCHAIN_VERSION=$(cargo --version | awk '{print $2}')
|
||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> $GITHUB_ENV
|
||||||
cache-directories: "/opt/rust-registry"
|
|
||||||
|
|
||||||
- name: Disable rust bridge build
|
- name: Disable rust bridge build
|
||||||
run: |
|
run: |
|
||||||
@ -864,7 +861,6 @@ jobs:
|
|||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}:/workspace"
|
--volume "${PWD}:/workspace"
|
||||||
--volume "/opt/artifacts:/opt/artifacts"
|
--volume "/opt/artifacts:/opt/artifacts"
|
||||||
--volume "/opt/rust-registry:/opt/rust-registry"
|
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
install: |
|
install: |
|
||||||
apt update -y
|
apt update -y
|
||||||
@ -881,10 +877,10 @@ 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.71.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ 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.71.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
rm -rf rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
@ -958,11 +954,10 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
profile: minimal # minimal component installation (ie, no documentation)
|
profile: minimal # minimal component installation (ie, no documentation)
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Save Rust toolchain version
|
||||||
with:
|
run: |
|
||||||
prefix-key: rustdesk-lib-cache
|
RUST_TOOLCHAIN_VERSION=$(cargo --version | awk '{print $2}')
|
||||||
key: ${{ matrix.job.target }}-${{ matrix.job.extra-build-features }}
|
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> $GITHUB_ENV
|
||||||
cache-directories: "/opt/rust-registry"
|
|
||||||
|
|
||||||
- name: Restore vcpkg files
|
- name: Restore vcpkg files
|
||||||
uses: actions/download-artifact@master
|
uses: actions/download-artifact@master
|
||||||
@ -982,7 +977,6 @@ jobs:
|
|||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}:/workspace"
|
--volume "${PWD}:/workspace"
|
||||||
--volume "/opt/artifacts:/opt/artifacts"
|
--volume "/opt/artifacts:/opt/artifacts"
|
||||||
--volume "/opt/rust-registry:/opt/rust-registry"
|
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
install: |
|
install: |
|
||||||
apt update -y
|
apt update -y
|
||||||
@ -995,10 +989,10 @@ 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.71.0-${{ matrix.job.target }}.tar.gz
|
wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ 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.71.0-${{ matrix.job.target }} && ./install.sh
|
cd rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }} && ./install.sh
|
||||||
rm -rf rust-1.71.0-${{ matrix.job.target }}
|
rm -rf rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}
|
||||||
# edit config
|
# edit config
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo """
|
echo """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user