1name: import-toolchain 2 3runs: 4 using: composite 5 steps: 6 - uses: actions/checkout@v3 7 with: 8 submodules: 'recursive' 9 10 - name: Cache DragonOS GCC 11 id: cache-dragonos-gcc 12 uses: actions/cache@v3 13 env: 14 cache-name: cache-dragonos-gcc 15 with: 16 path: | 17 ~/opt 18 ~/.bashrc 19 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/build_gcc_toolchain.sh') }} 20 21 - name: Cache build tools 22 id: cache-build-tools 23 uses: actions/cache@v3 24 env: 25 cache-name: cache-build-tools 26 dadk_version: 0.1.11 27 with: 28 path: | 29 ~/.cargo 30 ~/.rustup 31 ~/.bashrc 32 ~/opt 33 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.dadk_version }}-${{ hashFiles('.github/workflows/cache-toolchain.yml') }}-${{ hashFiles('tools/install_musl_gcc.sh') }} 34 35 - uses: ./.github/actions/install-apt-packages 36 37