update open_with_defaults #36
Workflow file for this run
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: Crates.io Distribution | |
| on: | |
| push: | |
| paths: | |
| - '**.rs' | |
| - '**.toml' | |
| - '**.lock' | |
| - '**.yaml' | |
| - 'Dockerfile' | |
| - 'crates/mdbx-remote/mdbx-sys/libmdbx/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Pull sources' | |
| uses: actions/checkout@v4 | |
| - name: 'Set up Rust' | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: 'Cargo test' | |
| if: "!startsWith(github.ref, 'refs/tags')" | |
| timeout-minutes: 5 | |
| run: | | |
| cargo test | |
| - name: 'Cargo Publish' | |
| if: startsWith(github.ref, 'refs/tags') | |
| timeout-minutes: 5 | |
| env: | |
| TOKEN: ${{ secrets.MDBX_CRATES_IO }} | |
| run: | | |
| cargo login $TOKEN && cargo test && cargo publish -p mdbx-remote-sys && cargo publish -p libmdbx-remote |