Skip to content

Commit acba3e1

Browse files
committed
ci: Add artifact upload to workflows
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
1 parent 2c0dbf1 commit acba3e1

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

ci/actions-templates/linux-builds-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ jobs:
152152
--rm \
153153
"${DOCKER}" \
154154
-c 'PATH="${PATH}":/rustc-sysroot/bin bash ci/run.bash'
155+
- name: Upload the built artifact
156+
uses: actions/upload-artifact@v2
157+
with:
158+
name: rustup-init-${{ matrix.target }}
159+
path: |
160+
target/${{ matrix.target }}/release/rustup-init
161+
retention-days: 7
155162
- name: Acquire the AWS tooling
156163
run: |
157164
pip3 install -U setuptools

ci/actions-templates/macos-builds-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ jobs:
9898
echo >&2 "Unfortunately there are /usr/local things in the link. Fail."
9999
exit 1
100100
fi
101+
- name: Upload the built artifact
102+
uses: actions/upload-artifact@v2
103+
with:
104+
name: rustup-init-${{ matrix.target }}
105+
path: |
106+
target/${{ matrix.target }}/release/rustup-init
107+
retention-days: 7
101108
- name: Acquire the AWS tooling
102109
run: |
103110
pip3 install awscli

ci/actions-templates/windows-builds-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ jobs:
105105
rustup target install ${{ matrix.target }}
106106
- name: Run a full build
107107
run: bash ci/run.bash
108+
- name: Upload the built artifact
109+
uses: actions/upload-artifact@v2
110+
with:
111+
name: rustup-init-${{ matrix.target }}
112+
path: |
113+
target/${{ matrix.target }}/release/rustup-init.exe
114+
retention-days: 7
108115
- name: Acquire the AWS tooling
109116
run: |
110117
choco upgrade awscli

0 commit comments

Comments
 (0)