Skip to content

Commit 692fcb1

Browse files
authoredOct 4, 2024··
Merge pull request #3 from PLSysSec/fix-flux-ci
Fix flux ci
2 parents 6841867 + 8d65075 commit 692fcb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+793
-104
lines changed
 

‎.github/workflows/benchmarks.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 2023.
4+
5+
# This workflow calculates size diffs for the compiled binary of each supported tock board
6+
7+
name: Benchmarks
8+
9+
# Controls when the action will run. Triggers the workflow on pull request
10+
# events but only for the master branch
11+
on:
12+
pull_request:
13+
branches: master
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
# If you add additional jobs, remember to add them to bors.toml
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
benchmarks:
22+
# The type of runner that the job will run on
23+
runs-on: ubuntu-latest
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.x'
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip setuptools wheel
35+
pip install --user cxxfilt
36+
sudo apt install llvm
37+
- name: size report
38+
run: |
39+
./tools/github_actions_size_changes.sh

‎.github/workflows/ci-nightly.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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

Comments
 (0)
Please sign in to comment.