Skip to content

Commit

Permalink
Merge pull request #2 from Pet-the-cat/dev
Browse files Browse the repository at this point in the history
GitHub Workflow
  • Loading branch information
Tom60chat authored Nov 20, 2023
2 parents bc4f63a + 71d5a73 commit a815bd5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/rust.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Rust dev

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

env:
CARGO_TERM_COLOR: always

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

18 changes: 10 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a815bd5

Please sign in to comment.