|
| 1 | +# Licensed under the Apache License, Version 2.0 or the MIT License. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 OR MIT |
| 3 | +# Copyright Tock Contributors 2024. |
| 4 | + |
| 5 | +name: tock-nightly-ci |
| 6 | + |
| 7 | +on: |
| 8 | + schedule: |
| 9 | + - cron: "0 0 * * *" |
| 10 | + |
| 11 | +env: |
| 12 | + TERM: xterm # Makes tput work in actions output |
| 13 | + |
| 14 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 15 | +# If you add additional jobs, remember to add them to bors.toml |
| 16 | +permissions: |
| 17 | + contents: read |
| 18 | + issues: write |
| 19 | + |
| 20 | +jobs: |
| 21 | + ci-build: |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + os: [ubuntu-latest, macos-latest] |
| 25 | + runs-on: ${{ matrix.os }} |
| 26 | + |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v3 |
| 29 | + |
| 30 | + - name: ci-job-syntax |
| 31 | + run: make ci-job-syntax |
| 32 | + - name: ci-job-compilation |
| 33 | + run: make ci-job-compilation |
| 34 | + - name: ci-job-debug-support-targets |
| 35 | + run: make ci-job-debug-support-targets |
| 36 | + |
| 37 | + - name: ci-job-collect-artifacts |
| 38 | + run: make ci-job-collect-artifacts |
| 39 | + - name: upload-build-artifacts |
| 40 | + uses: actions/upload-artifact@v3 |
| 41 | + with: |
| 42 | + name: build-artifacts |
| 43 | + path: tools/ci-artifacts |
| 44 | + |
| 45 | + ci-tests: |
| 46 | + strategy: |
| 47 | + matrix: |
| 48 | + os: [ubuntu-latest, macos-latest] |
| 49 | + runs-on: ${{ matrix.os }} |
| 50 | + |
| 51 | + steps: |
| 52 | + - name: Update package repositories |
| 53 | + run: | |
| 54 | + sudo apt update |
| 55 | + if: matrix.os == 'ubuntu-latest' |
| 56 | + - name: Install dependencies for ubuntu-latest |
| 57 | + run: | |
| 58 | + sudo apt install libudev-dev libzmq3-dev |
| 59 | + if: matrix.os == 'ubuntu-latest' |
| 60 | + - name: Install dependencies for macos-latest |
| 61 | + run: | |
| 62 | + brew install zeromq |
| 63 | + if: matrix.os == 'macos-latest' |
| 64 | + - uses: actions/checkout@v3 |
| 65 | + - name: ci-job-libraries |
| 66 | + run: make ci-job-libraries |
| 67 | + - name: ci-job-archs |
| 68 | + run: make ci-job-archs |
| 69 | + - name: ci-job-kernel |
| 70 | + run: make ci-job-kernel |
| 71 | + - name: ci-job-chips |
| 72 | + run: make ci-job-chips |
| 73 | + - name: ci-job-tools |
| 74 | + run: make ci-job-tools |
| 75 | + - name: Create Issue on Failed workflow |
| 76 | + if: failure() |
| 77 | + uses: dacbd/create-issue-action@main |
| 78 | + with: |
| 79 | + token: ${{ github.token }} |
| 80 | + title: Nightly CI failed |
| 81 | + body: | |
| 82 | + ### Context |
| 83 | + [Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
| 84 | + [Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }}) |
| 85 | + Workflow name - `${{ github.workflow }}` |
| 86 | + Job - `${{ github.job }}` |
| 87 | + status - `${{ job.status }}` |
| 88 | + assignees: tock/core-wg |
0 commit comments