|
5 | 5 |
|
6 | 6 | jobs: |
7 | 7 | ubuntu-20-first: |
8 | | - name: Step 1 - Ubuntu 20.04 container |
| 8 | + name: Step 1 - Ubuntu 20.04 container |
9 | 9 | runs-on: self-hosted |
10 | | - |
11 | 10 | container: |
12 | | - image: ubuntu:20.04 |
13 | | - |
| 11 | + image: ubuntu:20.04 |
14 | 12 | steps: |
15 | | - - uses: actions/checkout@v6 |
16 | | - - name: Ensure Sudo is Installed |
| 13 | + - name: Install OS prereqs |
17 | 14 | run: | |
18 | | - if ! command -v sudo &> /dev/null; then |
19 | | - echo "sudo could not be found. Installing..." |
20 | | - apt-get update && apt-get install -y sudo |
21 | | - fi |
| 15 | + apt-get update |
| 16 | + apt-get install -y --no-install-recommends \ |
| 17 | + ca-certificates curl git sudo \ |
| 18 | + libssl-dev libffi-dev zlib1g |
| 19 | +
|
22 | 20 | - name: Fix pip cache permissions |
23 | | - run: sudo chown -R $(whoami) /github/home |
24 | | - |
| 21 | + run: sudo chown -R $(whoami) /github/home |
| 22 | + |
| 23 | + - uses: actions/checkout@v6 |
25 | 24 |
|
26 | 25 | - name: Setup Python 3.11 |
27 | 26 | uses: gowridurgad/setup-python@testing-1087 |
28 | | - # uses: actions/setup-python@v6 |
29 | 27 | with: |
30 | 28 | python-version: "3.11" |
31 | | - - name: Upgrade pip |
32 | | - run: | |
33 | | - python -m pip install --upgrade pip |
34 | 29 |
|
35 | | - |
| 30 | + - name: Show cache layout after job 1 |
| 31 | + run: ls -la /__w/_tool/Python/ |
| 32 | + |
| 33 | + - name: Upgrade pip |
| 34 | + run: python -m pip install --upgrade pip |
36 | 35 |
|
37 | 36 | ubuntu-24-second: |
38 | 37 | name: Step 2 - Ubuntu 24.04 container |
39 | | - runs-on: self-hosted |
40 | 38 | needs: ubuntu-20-first |
41 | | - |
| 39 | + runs-on: self-hosted |
42 | 40 | container: |
43 | 41 | image: ubuntu:24.04 |
44 | | - |
45 | 42 | steps: |
46 | | - - uses: actions/checkout@v6 |
47 | | - |
48 | | - |
49 | | - - name: Ensure Sudo is Installed |
| 43 | + - name: Install OS prereqs |
50 | 44 | run: | |
51 | | - if ! command -v sudo &> /dev/null; then |
52 | | - echo "sudo could not be found. Installing..." |
53 | | - apt-get update && apt-get install -y sudo |
54 | | - fi |
| 45 | + apt-get update |
| 46 | + apt-get install -y --no-install-recommends \ |
| 47 | + ca-certificates curl git sudo \ |
| 48 | + libssl-dev libffi-dev zlib1g |
| 49 | +
|
55 | 50 | - name: Fix pip cache permissions |
56 | | - run: sudo chown -R $(whoami) /github/home |
57 | | - |
| 51 | + run: sudo chown -R $(whoami) /github/home |
| 52 | + |
| 53 | + - uses: actions/checkout@v6 |
| 54 | + |
| 55 | + - name: Show cache layout BEFORE job 2 |
| 56 | + run: ls -la /__w/_tool/Python/ |
58 | 57 |
|
59 | 58 | - name: Setup Python 3.11 |
60 | 59 | uses: gowridurgad/setup-python@testing-1087 |
61 | | - # uses: actions/setup-python@v6 |
62 | 60 | with: |
63 | 61 | python-version: "3.11" |
64 | 62 |
|
| 63 | + - name: Show cache layout AFTER job 2 |
| 64 | + run: ls -la /__w/_tool/Python/ |
| 65 | + |
65 | 66 | - name: Upgrade pip |
66 | | - run: | |
67 | | - python -m pip install --upgrade pip |
| 67 | + run: python -m pip install --upgrade pip |
0 commit comments