|
9 | 9 | name: Build and test Java (sof-language) |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | | - - uses: actions/checkout@v4 |
13 | | - - name: Set up JDK 24 |
14 | | - uses: actions/setup-java@v2 |
| 12 | + - uses: https://github.com/actions/checkout@v4 |
| 13 | + - name: Set up JDK 21 |
| 14 | + uses: https://github.com/actions/setup-java@v5 |
15 | 15 | with: |
16 | | - java-version: "24" |
| 16 | + java-version: "21" |
17 | 17 | distribution: "temurin" |
| 18 | + cache: "gradle" |
18 | 19 | - name: Setup Gradle |
19 | | - uses: gradle/actions/setup-gradle@v4 |
| 20 | + uses: https://github.com/gradle/actions/setup-gradle@v4 |
20 | 21 | - name: Validate Gradle wrapper |
21 | | - uses: gradle/actions/wrapper-validation@v3 |
| 22 | + uses: https://github.com/gradle/actions/wrapper-validation@v3 |
22 | 23 | - name: Build |
23 | 24 | run: ./gradlew build |
24 | 25 | - name: Test and generate coverage information |
25 | 26 | run: ./gradlew coverage |
26 | 27 | - name: Upload coverage information to codecov |
27 | | - uses: codecov/codecov-action@v2 |
| 28 | + uses: https://github.com/codecov/codecov-action@v5 |
28 | 29 | with: |
29 | 30 | files: build/jcc-report/test/jacocoTestReport.xml |
30 | 31 | name: sof-coverage-upload |
31 | 32 | fail_ci_if_error: false |
32 | 33 | verbose: true |
| 34 | + token: ${{ secrets.CODECOV_TOKEN }} |
33 | 35 |
|
34 | 36 | build-rust: |
35 | 37 | name: Build and test Rust (sof-rs) |
36 | 38 | runs-on: ubuntu-latest |
37 | 39 | steps: |
38 | | - - uses: actions/checkout@v4 |
| 40 | + - uses: https://github.com/actions/checkout@v4 |
39 | 41 | - name: Install Rust |
40 | | - uses: dtolnay/rust-toolchain@v1 |
| 42 | + id: toolchain |
| 43 | + uses: https://github.com/dtolnay/rust-toolchain@v1 |
41 | 44 | with: |
42 | 45 | toolchain: stable |
43 | | - - name: Output Rust version to file |
44 | | - run: cargo --version > rust-version |
45 | | - - uses: actions/cache@v4 |
| 46 | + - uses: https://github.com/actions/cache@v4 |
46 | 47 | with: |
47 | 48 | path: | |
48 | 49 | ~/.cargo/bin/ |
49 | 50 | ~/.cargo/registry/index/ |
50 | 51 | ~/.cargo/registry/cache/ |
51 | 52 | ~/.cargo/git/db/ |
52 | 53 | target/ |
53 | | - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('rust-version') }} |
| 54 | + key: build-${{ runner.os }}-${{ steps.toolchain.outputs.cachekey }} |
54 | 55 | - name: Install nextest |
55 | 56 | run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin |
56 | 57 |
|
|
0 commit comments