From 14bcf5cb285b61a4dab330e57f5ceb33b2062a27 Mon Sep 17 00:00:00 2001 From: RaspberryProgramming Date: Wed, 17 Jul 2024 18:17:59 +0000 Subject: [PATCH 1/2] Added build artifact upload to rust.yml workflow --- .github/workflows/rust.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a3485be..59c2a1a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and Test Rust on: push: @@ -24,6 +24,12 @@ jobs: toolchain: nightly override: true - name: Build - run: cargo build --verbose + run: cargo build --release --verbose - name: Run tests - run: cargo test --verbose + run: cargo test --release --verbose + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: linux-build + path: target/release/request-mirror + \ No newline at end of file From 14c8b1d59e587265500bc0076a970d0c62e67278 Mon Sep 17 00:00:00 2001 From: RaspberryProgramming Date: Wed, 17 Jul 2024 18:18:49 +0000 Subject: [PATCH 2/2] Updated docker-image.yml name --- .github/workflows/docker-image.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 631e77a..3fc65a2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: Build and Publish Docker Image on: push: diff --git a/README.md b/README.md index 4232508..78b44db 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Request Mirror This application provides a web ui for sending get/post requests and provides a visual ui for looking at what the application received. This is written in rust. -![Docker Image CI](https://github.com/RaspberryProgramming/request-mirror/actions/workflows/docker-image.yml/badge.svg +![Build and Publish Docker Image](https://github.com/RaspberryProgramming/request-mirror/actions/workflows/docker-image.yml/badge.svg ) -![Build and Test](https://github.com/RaspberryProgramming/request-mirror/actions/workflows/rust.yml/badge.svg) +![Build and Test Rust](https://github.com/RaspberryProgramming/request-mirror/actions/workflows/rust.yml/badge.svg) ## TODO: - Update Readme