diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..d7750f4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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' || '' }}