From 85903870c42028fb48f3e96fd1ed1bcd9d98fbc8 Mon Sep 17 00:00:00 2001 From: iwannet69 <95164143+iwannet@users.noreply.github.com> Date: Sat, 18 May 2024 09:21:08 +0000 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 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..cb6f7ca --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,61 @@ +name: Build and Release + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Build + run: cargo build --release + - name: Upload Linux Artifact + uses: actions/upload-artifact@v3 + with: + name: hey-linux + path: target/release/hey + + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Build + run: cargo build --release + - name: Upload macOS Artifact + uses: actions/upload-artifact@v3 + with: + name: hey-macos + path: target/release/hey + + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Build + run: cargo build --release + - name: Upload Windows Artifact + uses: actions/upload-artifact@v3 + with: + name: hey-windows + path: target/release/hey.exe