Skip to content

Install python3-venv before compilation #12

Install python3-venv before compilation

Install python3-venv before compilation #12

Workflow file for this run

name: deploy images
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-ubuntu-based:
runs-on: ubuntu-latest
strategy:
matrix:
base-img: [slim]
qemu-version: [5.2.0, 6.2.0, 7.0.0, 7.1.0, 7.2.0, 8.0.5, 8.1.5, 8.2.2]
include:
- qemu-target-tag: rv64
qemu-target-list: riscv64-softmmu,riscv64-linux-user
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install dependencies
run: |
sudo apt install python3-venv -y
python3 -m venv env
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
build-args: |
BASE_IMG=rustlang/rust:nightly-${{ matrix.base-img }}
QEMU_VER=${{ matrix.qemu-version }}
QEMU_TARGET=${{ matrix.qemu-target-list }}
file: Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/rustsbi/qemu:${{ matrix.base-img }}-${{ matrix.qemu-version }}-${{ matrix.qemu-target-tag }}
cache-from: type=registry,ref=ghcr.io/rustsbi/qemu:${{ matrix.base-img }}-${{ matrix.qemu-version }}-${{ matrix.qemu-target-tag }}
cache-to: type=inline