[zenohex_nif] Add session functions #9
Workflow file for this run
This file contains 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
env: | |
OTP_VERSION: 26.1.1 | |
ELIXIR_VERSION: 1.15.7 | |
# based https://github.com/erlef/setup-beam | |
on: | |
push: | |
branches: | |
- 'pojiro/0.2.0-dev' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{env.OTP_VERSION}} | |
elixir-version: ${{env.ELIXIR_VERSION}} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: get deps | |
run: mix do deps.get, deps.compile | |
- name: compile | |
run: mix compile | |
- name: format | |
run: mix format --check-formatted | |
- name: cargo fmt | |
working-directory: native/zenohex_nif | |
run: cargo fmt --all -- --check | |
- name: test | |
run: mix test --warnings-as-errors |