diff --git a/.github/workflows/rust.dev.yml b/.github/workflows/rust.dev.yml new file mode 100644 index 0000000..31dea70 --- /dev/null +++ b/.github/workflows/rust.dev.yml @@ -0,0 +1,37 @@ +name: Rust dev + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + release: + + name: Release + runs-on: ubuntu-latest + needs: build + + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: /home/runner/work/pet_the_cat_gui/pet_the_cat_gui/target/debug/ + - name: Test artifact download + run: ls -R +