|
27 | 27 | steps: |
28 | 28 | - uses: actions/checkout@v4 |
29 | 29 |
|
| 30 | + - name: Restore cached build |
| 31 | + id: cache |
| 32 | + uses: actions/cache@v4 |
| 33 | + with: |
| 34 | + path: hugrverse_env_manylinux_2_28_x86_64.tar.gz |
| 35 | + key: manylinux_2_28_x86_64-${{ hashFiles('builds/manylinux_2_28_x86_64/**') }} |
| 36 | + |
30 | 37 | - name: Build inside manylinux_2_28_x86_64 container |
| 38 | + if: steps.cache.outputs.cache-hit != 'true' |
31 | 39 | run: | |
32 | 40 | docker run --rm \ |
33 | 41 | -v "${{ github.workspace }}:/host" \ |
|
60 | 68 | steps: |
61 | 69 | - uses: actions/checkout@v4 |
62 | 70 |
|
| 71 | + - name: Restore cached build |
| 72 | + id: cache |
| 73 | + uses: actions/cache@v4 |
| 74 | + with: |
| 75 | + path: hugrverse_env_manylinux_2_28_aarch64.tar.gz |
| 76 | + key: manylinux_2_28_aarch64-${{ hashFiles('builds/manylinux_2_28_aarch64/**') }} |
| 77 | + |
63 | 78 | - name: Build inside manylinux_2_28_aarch64 container |
| 79 | + if: steps.cache.outputs.cache-hit != 'true' |
64 | 80 | run: | |
65 | 81 | docker run --rm \ |
66 | 82 | -v "${{ github.workspace }}:/host" \ |
@@ -93,7 +109,15 @@ jobs: |
93 | 109 | steps: |
94 | 110 | - uses: actions/checkout@v4 |
95 | 111 |
|
| 112 | + - name: Restore cached build |
| 113 | + id: cache |
| 114 | + uses: actions/cache@v4 |
| 115 | + with: |
| 116 | + path: hugrverse_env_macosx_15_0_arm64.tar.gz |
| 117 | + key: macosx_15_0_arm64-${{ hashFiles('builds/macosx_15_0_arm64/**') }} |
| 118 | + |
96 | 119 | - name: Build |
| 120 | + if: steps.cache.outputs.cache-hit != 'true' |
97 | 121 | run: | |
98 | 122 | bash builds/macosx_15_0_arm64/build.sh \ |
99 | 123 | "${{ github.workspace }}/hugrverse_env_macosx_15_0_arm64.tar.gz" |
@@ -123,7 +147,15 @@ jobs: |
123 | 147 | steps: |
124 | 148 | - uses: actions/checkout@v4 |
125 | 149 |
|
| 150 | + - name: Restore cached build |
| 151 | + id: cache |
| 152 | + uses: actions/cache@v4 |
| 153 | + with: |
| 154 | + path: hugrverse_env_macosx_15_0_x86_64.tar.gz |
| 155 | + key: macosx_15_0_x86_64-${{ hashFiles('builds/macosx_15_0_x86_64/**') }} |
| 156 | + |
126 | 157 | - name: Build |
| 158 | + if: steps.cache.outputs.cache-hit != 'true' |
127 | 159 | run: | |
128 | 160 | bash builds/macosx_15_0_x86_64/build.sh \ |
129 | 161 | "${{ github.workspace }}/hugrverse_env_macosx_15_0_x86_64.tar.gz" |
@@ -153,12 +185,21 @@ jobs: |
153 | 185 | steps: |
154 | 186 | - uses: actions/checkout@v4 |
155 | 187 |
|
| 188 | + - name: Restore cached build |
| 189 | + id: cache |
| 190 | + uses: actions/cache@v4 |
| 191 | + with: |
| 192 | + path: hugrverse_env_win_amd64.zip |
| 193 | + key: win_amd64-${{ hashFiles('builds/win_amd64/**') }} |
| 194 | + |
156 | 195 | - name: Set up MSVC environment |
| 196 | + if: steps.cache.outputs.cache-hit != 'true' |
157 | 197 | uses: ilammy/msvc-dev-cmd@v1 |
158 | 198 | with: |
159 | 199 | arch: amd64 |
160 | 200 |
|
161 | 201 | - name: Build |
| 202 | + if: steps.cache.outputs.cache-hit != 'true' |
162 | 203 | shell: pwsh |
163 | 204 | run: | |
164 | 205 | .\builds\win_amd64\build.ps1 ` |
|
0 commit comments