Skip to content

Commit

Permalink
[CI] Upload build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiming Zhao committed Mar 5, 2021
1 parent 7dd853c commit 3840eeb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/actions/build/build_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ if [ -z "$DOCKER_ID" ]; then
--disabled-password --home /home/$USER $USER"
fi

extra_cmd="true" # dummy command

if [[ "$VARIANT" =~ graphcore ]]; then
extra_cmd="source /opt/poplar_sdk-ubuntu_18_04-1.4.0+365-665f971c8f/poplar-ubuntu_18_04-1.4.0+71819-c5c0c8ebab/enable.sh \
&& source /opt/poplar_sdk-ubuntu_18_04-1.4.0+365-665f971c8f/popart-ubuntu_18_04-1.4.0+5352-e86081acc9/enable.sh"

docker exec --user $USER $CONTAINER_NAME bash -c \
"$extra_cmd && cd /host && rm -fr build && mkdir -p build && cd build && \
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds"
else
docker exec --user $USER $CONTAINER_NAME bash -c \
"cd /host && rm -fr build && mkdir -p build && cd build && \
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds && ninja package"
fi

docker exec --user $USER $CONTAINER_NAME bash -c \
"$extra_cmd && cd /host && rm -fr build && mkdir -p build && cd build && \
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds && ninja package"
7 changes: 7 additions & 0 deletions .github/workflows/ipu_sim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ jobs:
uses: ./halo/.github/actions/build
with:
docker_image_variant: graphcore1.4.0-x86_64

- name: Upload
uses: actions/upload-artifact@v2
with:
name: artifact
path: ${{runner.workspace}}/heterogeneity-aware-lowering-and-optimization/build/*.bz2
if-no-files-found: error
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches-ignore:
- "web"

release:
jobs:
check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,3 +44,9 @@ jobs:
uses: ./halo/.github/actions/build
with:
docker_image_variant: cuda10.0-cudnn7
- name: Upload
uses: actions/upload-artifact@v2
with:
name: artifact
path: ${{runner.workspace}}/heterogeneity-aware-lowering-and-optimization/build/*.bz2
if-no-files-found: error

0 comments on commit 3840eeb

Please sign in to comment.