mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-30 13:53:37 +00:00
34
.github/actions/import-toolchain/action.yml
vendored
Normal file
34
.github/actions/import-toolchain/action.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: import-toolchain
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Cache DragonOS GCC
|
||||
id: cache-dragonos-gcc
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-dragonos-gcc
|
||||
with:
|
||||
path: |
|
||||
~/opt
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/build_gcc_toolchain.sh') }}-${{ hashFiles('tools/install_musl_gcc.sh') }}
|
||||
|
||||
- name: Cache build tools
|
||||
id: cache-build-tools
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-build-tools
|
||||
dadk_version: 0.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo
|
||||
~/.rustup
|
||||
~/.bashrc
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.dadk_version }}-${{ hashFiles('.github/workflows/cache-toolchain.yml') }}
|
||||
|
||||
- uses: ./.github/actions/install-apt-packages
|
||||
|
16
.github/actions/install-apt-packages/action.yml
vendored
Normal file
16
.github/actions/install-apt-packages/action.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: install-apt-packages
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
|
||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: llvm-dev libclang-dev clang gcc-multilib libssl-dev pkg-config
|
||||
version: ${{ hashFiles('.github/actions/install-apt-packages/action.yml') }}
|
||||
|
||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: gcc-riscv64-unknown-elf gcc-riscv64-linux-gnu gdb-multiarch
|
||||
version: ${{ hashFiles('.github/actions/install-apt-packages/action.yml') }}
|
||||
|
Reference in New Issue
Block a user