Skip to content

Commit 4444178

Browse files
committed
CI: provide build artefacts
1 parent 2234456 commit 4444178

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/push.yml

+38
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,44 @@ jobs:
8787
command: test
8888
args: --verbose
8989

90+
dist:
91+
runs-on: ${{ matrix.os }}
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
os:
96+
- ubuntu-latest
97+
- windows-latest
98+
steps:
99+
- uses: actions/checkout@v1
100+
- uses: actions-rs/toolchain@v1
101+
with:
102+
profile: minimal
103+
toolchain: stable
104+
override: true
105+
- name: Cache ~/.cargo
106+
uses: actions/cache@v1
107+
with:
108+
path: ~/.cargo
109+
key: ${{ runner.os }}-test-dotcargo-stable
110+
- name: Cache cargo build
111+
uses: actions/cache@v1
112+
with:
113+
path: target
114+
key: ${{ runner.os }}-test-build-target-stable
115+
- name: Build
116+
uses: actions-rs/cargo@v1
117+
with:
118+
command: build
119+
args: --bins --locked --release
120+
- name: Upload artifacts
121+
uses: actions/upload-artifact@v2
122+
with:
123+
name: wormhole-${{ matrix.os }}-${{ github.sha }}
124+
path: ./target/release/wormhole-rs{,.exe}
125+
if-no-files-found: error
126+
continue-on-error: true
127+
90128
coverage:
91129
runs-on: ubuntu-latest
92130
steps:

0 commit comments

Comments
 (0)