1236b9b4fSLoGinname: Standard Check 2236b9b4fSLoGin 3236b9b4fSLoGinon: [push, pull_request] 4236b9b4fSLoGin 5236b9b4fSLoGinjobs: 6236b9b4fSLoGin # ensure the toolchain is cached 7236b9b4fSLoGin ensure-toolchain: 8236b9b4fSLoGin uses: ./.github/workflows/cache-toolchain.yml 9236b9b4fSLoGin 10236b9b4fSLoGin fmt: 11236b9b4fSLoGin name: fmt check 12236b9b4fSLoGin runs-on: ubuntu-latest 13236b9b4fSLoGin needs: [ensure-toolchain] 14236b9b4fSLoGin steps: 15236b9b4fSLoGin - uses: actions/checkout@v3 16236b9b4fSLoGin - name: Cache build tools 17236b9b4fSLoGin id: cache-build-tools 18236b9b4fSLoGin uses: actions/cache@v3 19236b9b4fSLoGin env: 20236b9b4fSLoGin cache-name: cache-build-tools 21236b9b4fSLoGin dadk_version: 0.1.2 22236b9b4fSLoGin with: 23236b9b4fSLoGin path: | 24236b9b4fSLoGin ~/.cargo 25236b9b4fSLoGin ~/.rustup 26236b9b4fSLoGin ~/.bashrc 27236b9b4fSLoGin key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.dadk_version }}-${{ hashFiles('.github/workflows/cache-toolchain.yml') }} 28236b9b4fSLoGin 29236b9b4fSLoGin - name: Check format 30236b9b4fSLoGin run: | 31236b9b4fSLoGin make fmt-check 32236b9b4fSLoGin 33236b9b4fSLoGin build: 34236b9b4fSLoGin name: build check 35236b9b4fSLoGin runs-on: ubuntu-latest 36236b9b4fSLoGin needs: [ensure-toolchain] 37236b9b4fSLoGin steps: 38236b9b4fSLoGin - uses: actions/checkout@v3 39236b9b4fSLoGin - name: Cache build tools 40236b9b4fSLoGin id: cache-build-tools 41236b9b4fSLoGin uses: actions/cache@v3 42236b9b4fSLoGin env: 43236b9b4fSLoGin cache-name: cache-build-tools 44236b9b4fSLoGin dadk_version: 0.1.2 45236b9b4fSLoGin with: 46236b9b4fSLoGin path: | 47236b9b4fSLoGin ~/.cargo 48236b9b4fSLoGin ~/.rustup 49236b9b4fSLoGin ~/.bashrc 50236b9b4fSLoGin key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.dadk_version }}-${{ hashFiles('.github/workflows/cache-toolchain.yml') }} 51236b9b4fSLoGin 52236b9b4fSLoGin - name: Build check 53236b9b4fSLoGin run: | 54*dfd3fd98S裕依2439 make build-release -j $(nproc) 55