Skip to content

Commit

Permalink
ci: Add win, linux and mac builds to rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkaRogachev authored Sep 28, 2024
1 parent fb78687 commit 66c56e4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-binary
path: target/release/your_binary_name${{ matrix.os == 'windows-latest' && '.exe' || '' }}

0 comments on commit 66c56e4

Please sign in to comment.