Skip to content

Commit 3840eeb

Browse files
author
Weiming Zhao
committed
[CI] Upload build artifacts
1 parent 7dd853c commit 3840eeb

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

.github/actions/build/build_in_docker.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ if [ -z "$DOCKER_ID" ]; then
5050
--disabled-password --home /home/$USER $USER"
5151
fi
5252

53+
extra_cmd="true" # dummy command
54+
5355
if [[ "$VARIANT" =~ graphcore ]]; then
5456
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 \
5557
&& source /opt/poplar_sdk-ubuntu_18_04-1.4.0+365-665f971c8f/popart-ubuntu_18_04-1.4.0+5352-e86081acc9/enable.sh"
56-
57-
docker exec --user $USER $CONTAINER_NAME bash -c \
58-
"$extra_cmd && cd /host && rm -fr build && mkdir -p build && cd build && \
59-
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds"
60-
else
61-
docker exec --user $USER $CONTAINER_NAME bash -c \
62-
"cd /host && rm -fr build && mkdir -p build && cd build && \
63-
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds && ninja package"
6458
fi
59+
60+
docker exec --user $USER $CONTAINER_NAME bash -c \
61+
"$extra_cmd && cd /host && rm -fr build && mkdir -p build && cd build && \
62+
cmake -G Ninja $cmake_flags ../halo && ninja && $check_cmds && ninja package"

.github/workflows/ipu_sim.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ jobs:
2222
uses: ./halo/.github/actions/build
2323
with:
2424
docker_image_variant: graphcore1.4.0-x86_64
25+
26+
- name: Upload
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: artifact
30+
path: ${{runner.workspace}}/heterogeneity-aware-lowering-and-optimization/build/*.bz2
31+
if-no-files-found: error

.github/workflows/main.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
branches-ignore:
99
- "web"
10-
10+
release:
1111
jobs:
1212
check:
1313
runs-on: ubuntu-latest
@@ -44,3 +44,9 @@ jobs:
4444
uses: ./halo/.github/actions/build
4545
with:
4646
docker_image_variant: cuda10.0-cudnn7
47+
- name: Upload
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: artifact
51+
path: ${{runner.workspace}}/heterogeneity-aware-lowering-and-optimization/build/*.bz2
52+
if-no-files-found: error

0 commit comments

Comments
 (0)