Skip to content

Fix building libcec on Ubuntu ARM (parallels on macbook M2) #1100

Fix building libcec on Ubuntu ARM (parallels on macbook M2)

Fix building libcec on Ubuntu ARM (parallels on macbook M2) #1100

Workflow file for this run

################################################################################
# This workflow will install Python dependencies, run tests and lint with a
# variety of Python versions. For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
################################################################################
name: OASIS Python
# Controls when the action will run. Triggers the workflow on push or pull
# request events
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in
# parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the
# job
steps:
- name: Build environment information
run: 'echo "Matrix OS: ${{ matrix.os }} on $HOSTNAME with $(getconf _NPROCESSORS_ONLN) cores"'
# Check-out the repository under $GITHUB_WORKSPACE, so the job can
# access it
- name: Checkout main repo
uses: actions/checkout@v4
# Required on self-hosted workers: sudo apt install python3.10-dev
#
# Furthermore, on Ubuntu 18.04, Python 3.10 backports don't exist yet, so
# you can use the deadsnakes repository:
#
# sudo add-apt-repository ppa:deadsnakes/ppa
# sudo apt update
# sudo apt install python3.10-dev
#
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install tox
- name: Restore tox environment
id: restore-tox
uses: actions/cache@v4
with:
path: |
.tox
key: tox-env-${{ hashFiles('tox.ini') }}
restore-keys: |
tox-env-
# Run the tests!
- name: Run tox
run: |
tox