Shared folders #117
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: Checks | |
| on: | |
| # workflow_call: | |
| pull_request: | |
| env: | |
| RUST_TEST_TIME_INTEGRATION: "120000,300000" | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| check: | |
| name: Check for ${{ matrix.binary_target }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| binary_target: x86_64-unknown-linux-gnu | |
| - os: windows-latest | |
| binary_target: x86_64-pc-windows-msvc | |
| - os: macos-latest | |
| binary_target: x86_64-apple-darwin | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ⚡ Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install libdbus | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get install libdbus-1-dev | |
| - name: Install musl tools | |
| if: matrix.binary_target == 'x86_64-unknown-linux-musl' | |
| run: sudo apt-get install musl-tools | |
| - name: Update rust | |
| run: | | |
| rustup override set stable | |
| rustup update stable | |
| rustup target add ${{ matrix.binary_target }} | |
| - name: Copy mock keychain | |
| if: matrix.binary_target == 'x86_64-apple-darwin' | |
| run: | | |
| cp tests/fixtures/migrate/sos-mock.keychain-db $HOME/Library/Keychains/ | |
| security list-keychains -s $HOME/Library/Keychains/sos-mock.keychain-db | |
| security list-keychains | |
| - name: Install cargo-make | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-make,nextest | |
| - name: Run tests | |
| run: | | |
| cargo make ci |