|
18 | 18 | matrix:
|
19 | 19 | include:
|
20 | 20 | - docker_image: graphcore/poplar:3.2.0-ubuntu-20.04-20230314
|
| 21 | + artifact_name: poplar-3.2.0 |
| 22 | + - docker_image: graphcore/poplar:3.3.0-ubuntu-20.04-20230703 |
| 23 | + artifact_name: poplar-3.3.0 |
21 | 24 | steps:
|
22 | 25 | - name: "Install, g++, jq"
|
23 | 26 | # g++ is needed to build the wrapper, jq for
|
|
32 | 35 | with:
|
33 | 36 | version: "1.7"
|
34 | 37 | - uses: julia-actions/cache@v1
|
| 38 | + - name: "Export environment variables" |
| 39 | + # Starting from graphcore/poplar:3.3.0 some environment variables like `CPATH` and |
| 40 | + # `LD_LIBRARY_PATH`, which we need for building the bindings, are only set with the |
| 41 | + # `bash` shell, while GHA uses by default `sh` for steps inside containers. So we |
| 42 | + # need to start a step with `shell: bash` and re-export the relevant variables for |
| 43 | + # the following steps. |
| 44 | + shell: bash |
| 45 | + run: | |
| 46 | + echo "PATH=${PATH}" >> "${GITHUB_ENV}" |
| 47 | + echo "CPATH=${CPATH}" >> "${GITHUB_ENV}" |
| 48 | + echo "LIBRARY_PATH=${LIBRARY_PATH}" >> "${GITHUB_ENV}" |
| 49 | + echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}" |
| 50 | + echo "POPLAR_SDK_ENABLED=${POPLAR_SDK_ENABLED}" >> "${GITHUB_ENV}" |
35 | 51 | - name: Instantiate wrapper generation environment
|
36 | 52 | working-directory: ${{ github.workspace }}/deps
|
37 | 53 | run: |
|
|
54 | 70 | julia --project=. --color=yes build_tarballs.jl --verbose
|
55 | 71 | - uses: actions/upload-artifact@v4
|
56 | 72 | with:
|
57 |
| - name: products |
| 73 | + name: products-${{ matrix.artifact_name }} |
58 | 74 | path: ${{ github.workspace }}/deps/bb_recipe/products
|
0 commit comments