Skip to content

GitHub Workflow

GitHub Workflow #7

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
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: Download artifact
uses: actions/download-artifact@v3
with:
name: pet-the-cat-gui_artifact
- name: Test artifact download
run: ls -R