tock-nightly-ci #678
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed under the Apache License, Version 2.0 or the MIT License. | |
| # SPDX-License-Identifier: Apache-2.0 OR MIT | |
| # Copyright Tock Contributors 2024. | |
| name: tock-nightly-ci | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| # Allow this workflow to be invoked manually, for an arbitrary ref | |
| # (useful for testing PRs, etc) | |
| workflow_dispatch: | |
| env: | |
| TERM: xterm # Makes tput work in actions output | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| # If you add additional jobs, remember to add them to bors.toml | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| ci-build: | |
| # Do not run job on forks | |
| if: github.repository == 'tock/tock' | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ci-job-syntax | |
| run: make ci-job-syntax | |
| - name: ci-job-compilation | |
| run: make ci-job-compilation | |
| - name: ci-job-debug-support-targets | |
| run: make ci-job-debug-support-targets | |
| - name: ci-job-collect-artifacts | |
| run: make ci-job-collect-artifacts | |
| - name: upload-build-artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts-${{ matrix.os }} | |
| path: tools/ci/ci-artifacts | |
| - name: Create Issue on Failed Workflow | |
| if: failure() | |
| uses: JasonEtco/create-an-issue@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| filename: .github/ci_nightly_failure_issue_template.md | |
| ci-tests: | |
| # Do not run job on forks | |
| if: github.repository == 'tock/tock' | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Update package repositories | |
| run: | | |
| sudo apt update | |
| if: matrix.os == 'ubuntu-latest' | |
| - name: Install dependencies for ubuntu-latest | |
| run: | | |
| sudo apt install -q libudev-dev libzmq3-dev | |
| if: matrix.os == 'ubuntu-latest' | |
| - name: Install dependencies for macos-latest | |
| run: | | |
| brew install zeromq | |
| if: matrix.os == 'macos-latest' | |
| - uses: actions/checkout@v4 | |
| - name: ci-job-libraries | |
| run: make ci-job-libraries | |
| - name: ci-job-archs | |
| run: make ci-job-archs | |
| - name: ci-job-kernel | |
| run: make ci-job-kernel | |
| - name: ci-job-chips | |
| run: make ci-job-chips | |
| - name: ci-job-tools | |
| run: make ci-job-tools | |
| - name: Create Issue on Failed Workflow | |
| if: failure() | |
| uses: JasonEtco/create-an-issue@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| filename: .github/ci_nightly_failure_issue_template.md |