summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyze <50497128+ryze312@users.noreply.github.com>2024-07-03 00:32:31 +0300
committerRyze <50497128+ryze312@users.noreply.github.com>2024-07-03 00:37:24 +0300
commit95fb98af0f07595425a9840df203dd9e3b44127f (patch)
tree609b2b3fe33dcee4e2aab497030be361654cee09
parent772f9e1797f1e372d5f3af4d0c1f3ac2081004e6 (diff)
downloadwhere-rs-95fb98af0f07595425a9840df203dd9e3b44127f.tar.gz
where-rs-95fb98af0f07595425a9840df203dd9e3b44127f.tar.bz2
where-rs-95fb98af0f07595425a9840df203dd9e3b44127f.zip
Upload build in workflow
-rwxr-xr-x.github/workflows/build_where.yml12
1 files changed, 11 insertions, 1 deletions
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