Skip to content

Commit

Permalink
ci: switch to ubuntu-22.04 image (temporary workaround for #187)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Mar 3, 2025
1 parent 778922e commit 150d5c4
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:

jobs:
benchmark:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
default: "false"
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
make dist
release:
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
skip_existing: true
coverage:
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs:
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ on:
jobs:
minimal:
name: Build minimal image for CI
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
tags: ghcr.io/${{ steps.lowered.outputs.lowercase }}-ci:${{ github.event.inputs.version }}
base:
name: Build base image for users
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: minimal
steps:
- name: Maximize build space
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
tags: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_NAMESPACE }}/mlonmcu:${{ github.event.inputs.version }}
bench:
name: Build large image for benchmarking
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: base
if: ${{ github.event.inputs.enable_bench }} == "true"
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/container_weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
jobs:
minimal:
name: Build minimal image for CI
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: "Set current date as env variable"
run: |
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
ghcr.io/${{ steps.lowered.outputs.lowercase }}-ci:${{ steps.branch_str.outputs.branch }}${{ steps.timestamp.outputs.builddate }}
base:
name: Build base image for users
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: minimal
steps:
- name: "Set current date as env variable"
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_NAMESPACE }}/mlonmcu:${{ steps.branch_str.outputs.branch }}${{ steps.timestamp.outputs.builddate }}
bench:
name: Build large image for benchmarking
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: base
steps:
- name: "Set current date as env variable"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ on:
# - main
jobs:
demo:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
jobs:
bench:
name: Run a single benchmark
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container: "${{ github.event.inputs.bench_image }}"
steps:
- name: Maximize build space
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:

jobs:
run:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/refresh_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
refresh:
name: Refresh large image for benchmarking
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/refresh_container_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
refresh:
name: Refresh large image for benchmarking
if: (github.event_name != 'schedule')
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Lowercase repository url
id: lowered
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
refresh_cron:
name: Refresh large image for benchmarking
if: (github.event_name == 'schedule')
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ github.repository == 'tum-ei-eda/mlonmcu' }}
steps:
- name: Checkout code
Expand All @@ -36,7 +36,7 @@ jobs:

publish:
name: Publish to PyPI
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ github.repository == 'tum-ei-eda/mlonmcu' }}
steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Check out Git repository
Expand All @@ -29,7 +29,7 @@ jobs:

check-license:
name: Check for License headers
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Check out Git repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
python_version:
- "3.10"
os:
- ubuntu-latest
- ubuntu-22.04
config:
- {branch: main, template: default, path: "tests --ignore tests/integration-tests/toolchains"}
- {branch: develop, template: dev, path: "tests --ignore tests/integration-tests/toolchains"}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
MLONMCU_HOME=$(pwd)/home/ python3 -m pytest --run-slow --run-user-context ${{ matrix.config.path }} -rs -s -v
test_docker:
name: Weekly Tests (Docker)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# container: ${{ matrix.config.image }}
if: ${{ github.event_name == 'schedule' || github.event.inputs.docker == 'true' }}
strategy:
Expand Down

0 comments on commit 150d5c4

Please sign in to comment.