From 0e4501598e56924ffa2462ae99aae56ea34d6c56 Mon Sep 17 00:00:00 2001 From: Dimach Date: Thu, 25 Jul 2024 18:28:11 +0300 Subject: [PATCH] Add artifact build --- .github/workflows/rust.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e93b20e..f95ebe4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,10 +16,16 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Build + - name: Build (Debug) run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Build (release) + run: cargo build --target x86_64-unknown-linux-gnu + - uses: actions/upload-artifact@v4 + with: + name: Linux Build + path: target/x86_64-unknown-linux-gnu/release/rtracy build-windows: runs-on: windows-latest @@ -27,7 +33,13 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Build + - name: Build (Debug) run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Build (release) + run: cargo build --target x86_64-pc-windows-msvc + - uses: actions/upload-artifact@v4 + with: + name: Windows Build + path: target/x86_64-pc-windows-msvc/release/rtracy.exe \ No newline at end of file