Skip to content

Commit a389978

Browse files
committed
Try to fix ci
1 parent e65edcf commit a389978

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- name: dependencies
3636
run: |
37-
pip3 install colorama
37+
python3 -m venv env
38+
env/bin/pip install colorama
3839
- name: libdwarf
3940
run: |
4041
cd ..
4142
cpptrace/ci/setup-prerequisites.sh
4243
- name: build
4344
run: |
44-
python3 ci/build-in-all-configs.py --${{matrix.compiler}} --default-config
45+
env/bin/python ci/build-in-all-configs.py --${{matrix.compiler}} --default-config
4546
build-windows:
4647
runs-on: windows-2022
4748
strategy:
@@ -95,14 +96,15 @@ jobs:
9596
- uses: actions/checkout@v4
9697
- name: dependencies
9798
run: |
98-
pip3 install colorama
99+
python3 -m venv env
100+
env/bin/pip install colorama
99101
- name: libdwarf
100102
run: |
101103
cd ..
102104
cpptrace/ci/setup-prerequisites.sh
103105
- name: build
104106
run: |
105-
python3 ci/build-in-all-configs.py --${{matrix.compiler}}
107+
env/bin/python ci/build-in-all-configs.py --${{matrix.compiler}}
106108
build-windows-all-configurations:
107109
runs-on: windows-2022
108110
needs: build-windows

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ jobs:
4242
cpptrace/ci/setup-prerequisites.sh
4343
- name: dependencies
4444
run: |
45-
pip3 install colorama
45+
python3 -m venv env
46+
env/bin/pip install colorama
4647
- name: build and test
4748
run: |
48-
python3 ci/test-all-configs.py --${{matrix.compiler}} --default-config
49+
env/bin/python ci/test-all-configs.py --${{matrix.compiler}} --default-config
4950
test-windows:
5051
runs-on: windows-2022
5152
strategy:
@@ -106,10 +107,11 @@ jobs:
106107
cpptrace/ci/setup-prerequisites.sh
107108
- name: dependencies
108109
run: |
109-
pip3 install colorama
110+
python3 -m venv env
111+
env/bin/pip install colorama
110112
- name: build and test
111113
run: |
112-
python3 ci/test-all-configs.py --${{matrix.compiler}}
114+
env/bin/python ci/test-all-configs.py --${{matrix.compiler}}
113115
test-windows-all-configurations:
114116
runs-on: windows-2022
115117
strategy:

0 commit comments

Comments
 (0)