diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45e9356..49811f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,14 +34,15 @@ jobs: - uses: actions/checkout@v4 - name: dependencies run: | - pip3 install colorama + python3 -m venv env + env/bin/pip install colorama - name: libdwarf run: | cd .. cpptrace/ci/setup-prerequisites.sh - name: build run: | - python3 ci/build-in-all-configs.py --${{matrix.compiler}} --default-config + env/bin/python ci/build-in-all-configs.py --${{matrix.compiler}} --default-config build-windows: runs-on: windows-2022 strategy: @@ -95,14 +96,15 @@ jobs: - uses: actions/checkout@v4 - name: dependencies run: | - pip3 install colorama + python3 -m venv env + env/bin/pip install colorama - name: libdwarf run: | cd .. cpptrace/ci/setup-prerequisites.sh - name: build run: | - python3 ci/build-in-all-configs.py --${{matrix.compiler}} + env/bin/python ci/build-in-all-configs.py --${{matrix.compiler}} build-windows-all-configurations: runs-on: windows-2022 needs: build-windows diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f81803..cc8da81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,10 +42,11 @@ jobs: cpptrace/ci/setup-prerequisites.sh - name: dependencies run: | - pip3 install colorama + python3 -m venv env + env/bin/pip install colorama - name: build and test run: | - python3 ci/test-all-configs.py --${{matrix.compiler}} --default-config + env/bin/python ci/test-all-configs.py --${{matrix.compiler}} --default-config test-windows: runs-on: windows-2022 strategy: @@ -106,10 +107,11 @@ jobs: cpptrace/ci/setup-prerequisites.sh - name: dependencies run: | - pip3 install colorama + python3 -m venv env + env/bin/pip install colorama - name: build and test run: | - python3 ci/test-all-configs.py --${{matrix.compiler}} + env/bin/python ci/test-all-configs.py --${{matrix.compiler}} test-windows-all-configurations: runs-on: windows-2022 strategy: