-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from b5g-ex/pojiro/0.2.0-dev
0.2.0 is developed!!
- Loading branch information
Showing
80 changed files
with
3,658 additions
and
715 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "mix" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
name: CI | ||
|
||
env: | ||
OTP_VERSION: 26.1.2 | ||
ELIXIR_VERSION: 1.15.7 | ||
MIX_ENV: test | ||
|
||
# based https://github.com/erlef/setup-beam | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-deps: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
id: setup-beam | ||
with: | ||
otp-version: ${{env.OTP_VERSION}} | ||
elixir-version: ${{env.ELIXIR_VERSION}} | ||
|
||
- uses: actions/cache@v4 | ||
id: save-deps-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
|
||
- name: build deps | ||
if: steps.save-deps-cache.outputs.cache-hit != 'true' | ||
run: mix do deps.get, deps.compile | ||
|
||
code-analysis: | ||
needs: build-deps | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
id: setup-beam | ||
with: | ||
otp-version: ${{env.OTP_VERSION}} | ||
elixir-version: ${{env.ELIXIR_VERSION}} | ||
|
||
- uses: actions/cache/restore@v4 | ||
id: restore-deps-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
restore-keys: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}- | ||
|
||
- name: format | ||
run: mix format --check-formatted | ||
|
||
- name: cargo fmt | ||
working-directory: native/zenohex_nif | ||
run: cargo fmt --all -- --check | ||
|
||
- name: credo | ||
run: mix credo --ignore fixme | ||
|
||
- name: restore plts cache | ||
id: restore-plts-cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
key: plts-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
restore-keys: plts-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}- | ||
path: priv/plts | ||
|
||
- name: create plts | ||
if: steps.restore-plts-cache.outputs.cache-hit != 'true' | ||
run: mix dialyzer --plt | ||
|
||
- name: save plts cache | ||
id: save-plts-cache | ||
uses: actions/cache/save@v4 | ||
if: steps.restore-plts-cache.outputs.cache-hit != 'true' | ||
with: | ||
key: plts-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
path: priv/plts | ||
|
||
- name: dialyzer | ||
run: mix dialyzer --format github | ||
|
||
test-with-one-session: | ||
needs: build-deps | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
id: setup-beam | ||
with: | ||
otp-version: ${{env.OTP_VERSION}} | ||
elixir-version: ${{env.ELIXIR_VERSION}} | ||
|
||
- uses: actions/cache/restore@v4 | ||
id: restore-deps-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
restore-keys: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}- | ||
|
||
- name: test | ||
run: mix test --warnings-as-errors --cover | ||
|
||
test-with-another-session: | ||
needs: build-deps | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
id: setup-beam | ||
with: | ||
otp-version: ${{env.OTP_VERSION}} | ||
elixir-version: ${{env.ELIXIR_VERSION}} | ||
|
||
- uses: actions/cache/restore@v4 | ||
id: restore-deps-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/*.lock') }} | ||
restore-keys: deps-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}- | ||
|
||
- name: test | ||
run: USE_DIFFERENT_SESSION="1" mix test --warnings-as-errors --cover |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,21 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
nif: ["2.16", "2.15"] | ||
nif: ["2.15"] | ||
job: | ||
- { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04 , use-cross: true } | ||
- { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04 , use-cross: true } | ||
- { target: aarch64-apple-darwin , os: macos-11 } | ||
- { target: x86_64-apple-darwin , os: macos-11 } | ||
- { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04 } | ||
- { target: x86_64-unknown-linux-musl , os: ubuntu-20.04 , use-cross: true } | ||
- { target: x86_64-pc-windows-gnu , os: windows-2019 } | ||
- { target: x86_64-pc-windows-msvc , os: windows-2019 } | ||
- { target: aarch64-apple-darwin , os: macos-12 } | ||
- { target: aarch64-unknown-linux-gnu , os: ubuntu-22.04 , use-cross: true } | ||
- { target: aarch64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true } | ||
- { target: arm-unknown-linux-gnueabihf , os: ubuntu-22.04 , use-cross: true } | ||
- { target: x86_64-apple-darwin , os: macos-12 } | ||
- { target: x86_64-pc-windows-gnu , os: windows-2022 } | ||
- { target: x86_64-pc-windows-msvc , os: windows-2022 } | ||
- { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 } | ||
- { target: x86_64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true } | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract project version | ||
shell: bash | ||
|
@@ -42,12 +43,12 @@ jobs: | |
id: build-crate | ||
uses: philss/[email protected] | ||
with: | ||
project-name: nifzenoh | ||
project-name: zenohex_nif | ||
project-version: ${{ env.PROJECT_VERSION }} | ||
target: ${{ matrix.job.target }} | ||
nif-version: ${{ matrix.nif }} | ||
use-cross: ${{ matrix.job.use-cross }} | ||
project-dir: "native/nifzenoh" | ||
project-dir: "native/zenohex_nif" | ||
|
||
- name: Artifact upload | ||
uses: actions/upload-artifact@v3 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ zenohex-*.tar | |
/tmp/ | ||
|
||
/priv/native/ | ||
|
||
/priv/plts/*.plt | ||
/priv/plts/*.plt.hash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
elixir 1.15.6-otp-26 | ||
erlang 26.1.1 | ||
elixir 1.15.7-otp-26 | ||
erlang 26.1.2 |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
%{ | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-aarch64-apple-darwin.so.tar.gz" => "sha256:50123c9e497693e616daf10fcc3731329de3b2b25d7201bdfa06d4e1b430383e", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz" => "sha256:d5fa11e706bdf974511c2a2ea4731e16460a272a5752ba9721201b3f6b435ae4", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-aarch64-unknown-linux-musl.so.tar.gz" => "sha256:4957bd71810dbff7d5685f3a6469cbf1adbe849e0e88c00607910441c701d0db", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-arm-unknown-linux-gnueabihf.so.tar.gz" => "sha256:db0dcbf78eea7fc7c8f9bfd6b9acd816da560c6ea345494195df8f9b967a2714", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-x86_64-apple-darwin.so.tar.gz" => "sha256:3413ab2f8f8772a690b59c43b6e5db5e3fcec721bc481ea14da20c890b22f561", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-x86_64-unknown-linux-gnu.so.tar.gz" => "sha256:c835b87013dc722c647851358deabd17abdc274c79b42fab617662ed06b8866c", | ||
"libzenohex_nif-v0.2.0-rc.2-nif-2.15-x86_64-unknown-linux-musl.so.tar.gz" => "sha256:bc614603b0424618d5e18440cd9637b6deaf835d52f5523f936935b2f863a45f", | ||
"zenohex_nif-v0.2.0-rc.2-nif-2.15-x86_64-pc-windows-gnu.dll.tar.gz" => "sha256:f4acdab20483a65e7e2f85aa139df5856e6ba1db7827e729af8b77fe46562779", | ||
"zenohex_nif-v0.2.0-rc.2-nif-2.15-x86_64-pc-windows-msvc.dll.tar.gz" => "sha256:c9091043d80c1e6183002472cb2bc630767a783980665785836f8644921fae57", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Config | ||
|
||
config :rustler_precompiled, :force_build, zenohex: true |
Oops, something went wrong.