From 95fb98af0f07595425a9840df203dd9e3b44127f Mon Sep 17 00:00:00 2001 From: Ryze <50497128+ryze312@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:32:31 +0300 Subject: Upload build in workflow --- .github/workflows/build_where.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_where.yml b/.github/workflows/build_where.yml index 684fcda..3de1873 100755 --- a/.github/workflows/build_where.yml +++ b/.github/workflows/build_where.yml @@ -18,6 +18,9 @@ jobs: os: [ ubuntu-latest, macos-latest ] profile: [ dev, release ] + env: + BUILD_NAME: ${{ matrix.profile == 'dev' && 'debug' || matrix.profile }} + steps: - uses: actions/checkout@v4 - name: Build @@ -25,7 +28,7 @@ jobs: - name: Check run: cargo clippy --profile ${{ matrix.profile }} -- -D warnings - name: Test message exchange - working-directory: target/${{ matrix.profile == 'dev' && 'debug' || matrix.profile }} + working-directory: target/${{ env.BUILD_NAME }} run: | touch ~/.config/where.toml echo '[global]' >> ~/.config/where.toml @@ -42,3 +45,10 @@ jobs: done ./where + - name: Upload build + uses: actions/upload-artifact@v4 + with: + name: where-rs-${{ matrix.os }}-${{ env.BUILD_NAME }} + path: | + target/${{ env.BUILD_NAME }}/where + target/${{ env.BUILD_NAME }}/whered -- cgit