固定编译工具链、修复由于新版rust编译器问题导致的报错。 (#258)

* 固定编译工具链、修复由于新版rust编译器问题导致的报错。

* 完善github workflow环境配置
This commit is contained in:
login
2023-05-07 22:20:33 +08:00
committed by GitHub
parent 3a23230af4
commit b11bb1b256
3 changed files with 10 additions and 7 deletions

View File

@ -44,7 +44,7 @@ jobs:
- if: ${{ steps.cache-build-tools.outputs.cache-hit != 'true' }}
name: Install toolchain
continue-on-error: true
run: sudo apt install -y llvm-dev libclang-dev clang gcc-multilib && cargo install cargo-binutils && rustup toolchain install nightly && rustup default nightly && rustup component add rust-src && rustup component add llvm-tools-preview && rustup target add x86_64-unknown-none
run: sudo apt install -y llvm-dev libclang-dev clang gcc-multilib && cargo install cargo-binutils && rustup toolchain install nightly && rustup default nightly && rustup component add rust-src && rustup component add llvm-tools-preview && rustup target add x86_64-unknown-none && rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: build the DragonOS
run: bash -c "source ~/.cargo/env && export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin && make -j $(nproc) "