From 444417844f9d854f686519485a18f8c514349bfb Mon Sep 17 00:00:00 2001 From: piegames Date: Sat, 5 Mar 2022 21:45:22 +0100 Subject: [PATCH] CI: provide build artefacts --- .github/workflows/push.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index dbb29497..aa46da6a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -87,6 +87,44 @@ jobs: command: test args: --verbose + dist: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Cache ~/.cargo + uses: actions/cache@v1 + with: + path: ~/.cargo + key: ${{ runner.os }}-test-dotcargo-stable + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-test-build-target-stable + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --bins --locked --release + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: wormhole-${{ matrix.os }}-${{ github.sha }} + path: ./target/release/wormhole-rs{,.exe} + if-no-files-found: error + continue-on-error: true + coverage: runs-on: ubuntu-latest steps: