Scripts cleanups #49
Workflow file for this run
This file contains 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
name: CI | |
on: [push, pull_request] | |
jobs: | |
lint-python-scripts: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install flake8 & mypy | |
run: | | |
sudo apt update | |
sudo apt install python3 python3-pip | |
pip install flake8 mypy | |
- name: Run flake8 on the project | |
run: | | |
flake8 *.py | |
flake8 scripts/*.py | |
- name: Run mypy on the project | |
run: mypy --disallow-incomplete-defs --no-implicit-optional *.py scripts/*.py | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
arch: [i686, x86_64] | |
toolchain: [gcc, clang] | |
exclude: | |
# FIXME: the GCC build somehow ends up being corrupted with | |
# libexec/cc1 containing garbage data. | |
- os: macos-latest | |
toolchain: gcc | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- if: ${{ matrix.toolchain == 'gcc' }} | |
uses: actions/[email protected] | |
with: | |
path: "${{ github.workspace }}/toolchain/tools_${{ matrix.arch }}" | |
key: "${{ runner.os }}-${{ runner.arch }}-${{ matrix.arch }}-gcc" | |
# TODO: maybe split these steps | |
- name: Build platform toolchain & Kernel | |
run: "${{ github.workspace }}/build.py --arch ${{ matrix.arch }} --toolchain ${{ matrix.toolchain }} --no-tune-native" | |