2024-05-19 14:48:48 +02:00
|
|
|
name: Build development version
|
2024-05-18 11:21:08 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
2024-05-19 14:53:20 +02:00
|
|
|
paths:
|
|
|
|
- .github/**
|
|
|
|
- src/**
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
2024-05-18 11:21:08 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
2024-05-19 14:53:20 +02:00
|
|
|
paths:
|
|
|
|
- .github/**
|
|
|
|
- src/**
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
2024-05-18 11:21:08 +02:00
|
|
|
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
|