From 9464ffbfb24d1dc8628929f159be29ec04cdcbfa Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 20 Nov 2023 23:58:55 +0100 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0a1f90b..83c8e0e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,26 +11,28 @@ env: jobs: build: - + name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + run: cargo build --release --verbose + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: pet-the-cat-gui_artifact + path: /home/runner/work/pet_the_cat_gui/pet_the_cat_gui/target/release/pet_the_cat_gui release: - name: Release runs-on: ubuntu-latest needs: build steps: - - name: Test artifact download - run: ls -R - name: Download artifact uses: actions/download-artifact@v3 with: - name: pet_the_cat_gui + name: pet-the-cat-gui_artifact + - name: Test artifact download + run: ls -R