Fix artifact upload #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build library | |
| run: cargo build --release | |
| - name: Run tests | |
| run: cargo test --release | |
| - name: Upload dynamic libraries | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| archive: false | |
| name: shared-libs-${{ matrix.os }} | |
| path: | | |
| target/release/*.dll | |
| target/release/*.so | |
| target/release/*.dylib | |
| if-no-files-found: ignore |