From 6783a0ae08b24908c6d8a6243514e7a0276e763c Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Sat, 17 Feb 2024 11:00:49 +0530 Subject: [PATCH 1/3] Create rust.yml --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..d54fa2f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +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 From 30efc14f7ec24ce554f2b63d80ae761225ce443a Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Sat, 17 Feb 2024 11:10:02 +0530 Subject: [PATCH 2/3] Update rust.yml --- .github/workflows/rust.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d54fa2f..5bdcf93 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,5 +1,4 @@ name: Rust - on: push: branches: [ "master" ] @@ -20,3 +19,13 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Build Release + run: cargo build --release --verbose + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4.3.1 + if: ${{ github.event_name == "push" }} + with: + name: byte-pusher-emu + path: target/release/byte-pusher-emu + if-no-files-found: error + overwrite: false From 491099dd00ab15ae4110fd46c095cd16d8e55650 Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Sat, 17 Feb 2024 11:11:05 +0530 Subject: [PATCH 3/3] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5bdcf93..993ab21 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,7 +23,7 @@ jobs: run: cargo build --release --verbose - name: Upload a Build Artifact uses: actions/upload-artifact@v4.3.1 - if: ${{ github.event_name == "push" }} + if: ${{ github.event_name == 'push' }} with: name: byte-pusher-emu path: target/release/byte-pusher-emu