Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
new version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sobi3ch committed Apr 28, 2022
0 parents commit 4039b86
Show file tree
Hide file tree
Showing 1,319 changed files with 112,052 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"build": { "dockerfile": "Dockerfile" },
}
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# All directories that start with `.`
**/.*

!.github

# Rust builds
**/target

# ELixir builds
**/_build
**/deps

# Gradle builds
**/build
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This .editorconfig file specifies conventions for character set, spacing, indentation etc.
# followed by the source code in this project.
#
# When contributing code, please use an editor that supports .editorconfig
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Let the corresponding language formatters deal with indent size
[{*.{ex,exs,c,h,rs,cmake,cmake.in,stderr,ts},CMakeLists.txt,Cargo.lock}]
indent_size = unset

[*.{drawio,svg}]
trim_trailing_whitespace = unset
insert_final_newline = unset

[Makefile]
# Make requires tab.
indent_style = tab
30 changes: 30 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file tells Git to only store LF in git.
#
# On Windows, Git will process all text files and
# make sure that CRLF is replaced with LF when writing that file to
# the object database and turn all LF back into CRLF when writing out
# into the working directory.
#
# git-scm.com/docs/gitattributes#_end_of_line_conversion
* text=auto

# Github detects some C header files incorrectly as C++
# This setting tells linguist to detect them as C
#
# https://github.com/github/linguist#using-gitattributes
# github.com/github/linguist/issues/2881#issuecomment-231470986
*.h linguist-language=C

# Ignore from repo language statistics.
# https://github.com/github/linguist#using-gitattributes
*.c linguist-vendored=true
*.h linguist-vendored=true
CMakeLists.txt linguist-vendored=true
*.cmake linguist-vendored=true
*.cmake.in linguist-vendored=true
*.html linguist-vendored=true
*.html.eex linguist-vendored=true
*.py linguist-vendored=true
*.gradle linguist-vendored=true
*.js linguist-vendored=true
tools/** linguist-vendored=true
15 changes: 15 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Request reviews from Mrinal unless one of the specific rules later in this file take precedence.
* @mrinalwadhwa

# Request reviews from Jared and Mrinal when code in the rust implementation changes.
implementations/rust/* @jared-s @mrinalwadhwa

# Request reviews from Daniil and Mrinal when code in the Elixir implementation changes.
implementations/elixir/* @hairyhum @mrinalwadhwa

# Request reviews from Sanjo and Mrinal when code in the C implementation changes.
implementations/c/* @sanjodeundiak @mrinalwadhwa

# References on updating this file:
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
# https://git-scm.com/docs/gitignore#_pattern_format
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
blank_issues_enabled: false
contact_links:
- name: Bug and Issues
url: https://github.com/ockam-network/ockam/issues/new/
about: Report a bug or issue
- name: Feature Request
url: https://github.com/ockam-network/ockam/discussions/new
about: Request a feature to be added to the platform
- name: Ask a Question
url: https://github.com/ockam-network/ockam/discussions/new
about: Ask questions and discuss with other community members
- name: Learn how to Contribute
url: https://www.ockam.io/learn/how-to-guides/contributing/CONTRIBUTING/
about: Read Ockam's Library of How-to guides
- name: Review or submit a design proposal
url: https://www.ockam.io/learn/proposals/0001-proposal-process/
about: Read Ockam's formal Proposal Process
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Thank you for sending a pull request :heart: -->

## Current Behaviour

<!-- Please describe the current behavior of the code before the changes in this pull request is applied. -->

## Proposed Changes

<!-- Please describe the changes proposed in this pull request. -->
<!-- If this pull request resolves an already recorded bug or a feature request, please add a link to that issue. -->

## Checks

<!-- To help us review and merge this pull request quickly, please confirm the following: -->

- [ ] All commits in this Pull Request are [signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits).
- [ ] All commits in this Pull Request follow the Ockam [commit message convention](https://www.ockam.io/learn/how-to-guides/contributing/CONTRIBUTING#commit-messages).
- [ ] I accept the Ockam Community [Code of Conduct](https://www.ockam.io/learn/how-to-guides/high-performance-team/conduct/).
- [ ] I have accepted the Ockam [Contributor Licence Agreement](https://www.ockam.io/learn/how-to-guides/contributing/cla/) by adding my Git/Github details in a row at the end of the [CONTRIBUTORS.csv](https://github.com/ockam-network/contributors/blob/master/CONTRIBUTORS.csv) file in a separate pull request to the [ockam-network/contributors](https://github.com/ockam-network/contributors) repository.

<!-- Looking forward to merging your contribution!! -->
15 changes: 15 additions & 0 deletions .github/actions/cargo_home_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CARGO_HOME Cache
description: CARGO_HOME Cache
runs:
using: "composite"
steps:
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-home-${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae

# https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
12 changes: 12 additions & 0 deletions .github/actions/cargo_target_dir_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CARGO_TARGET_DIR Cache
description: CARGO_TARGET_DIR Cache
runs:
using: "composite"
steps:
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: target
key: cargo-target----${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-target----${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae-

# https://doc.rust-lang.org/cargo/guide/build-cache.html
18 changes: 18 additions & 0 deletions .github/actions/cargo_target_dir_pre_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CARGO_TARGET_DIR Pre Cache
description: CARGO_TARGET_DIR Pre Cache
runs:
using: "composite"
steps:
- shell: bash
run: |
crates=($(cargo metadata --no-deps --format-version 1 | jq -r '.workspace_members[] | split(" ") | .[0] | gsub("-";"_")'))
for mode in debug release; do
for dir in deps .fingerprint; do
if [ -d "target/$mode/$dir" ]; then
cd "target/$mode/$dir"
for crate in "${crates[@]}"; do rm -rf $crate* lib$crate*; done
cd -
fi
done
done
11 changes: 11 additions & 0 deletions .github/actions/elixir_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Elixir Cache
description: Elixir Cache
runs:
using: "composite"
steps:
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: '**/deps'
key: elixir-${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae-${{ hashFiles('**/mix.lock') }}
restore-keys: |
elixir-${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae-
14 changes: 14 additions & 0 deletions .github/actions/gradle_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Gradle Cache
description: Gradle Home Cache
runs:
using: "composite"
steps:
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: ~/.gradle/wrapper/dists
key: gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae
restore-keys: |
gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ github.workflow }}-${{ github.job }}-ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae
gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ github.workflow }}-${{ github.job }}-
gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ github.workflow }}-
gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-
88 changes: 88 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
commit-message:
prefix: "ci:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Component: CI/CD"

# Maintain dependencies for rust crates
- package-ecosystem: "cargo"
directory: "/"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Rust"

# Maintain dependencies for typescript packages
- package-ecosystem: "npm"
directory: "/implementation/typescript"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Typescript"

# Maintain dependencies for elixir ockam application
- package-ecosystem: "mix"
directory: "/implementations/elixir/ockam/ockam"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Elixir"

# Maintain dependencies for elixir ockam_hub application
- package-ecosystem: "mix"
directory: "/implementations/elixir/ockam/ockam_hub"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Elixir"

# Maintain dependencies for elixir ockam_kafka application
- package-ecosystem: "mix"
directory: "/implementations/elixir/ockam/ockam_kafka"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Elixir"

# Maintain dependencies for elixir ockam_vault_software application
- package-ecosystem: "mix"
directory: "/implementations/elixir/ockam/ockam_vault_software"
commit-message:
prefix: "build:"
schedule:
interval: "daily"
labels:
- "Type: Dependencies"
- "Implementation: Elixir"

# Maintain dependencies for elixir ockam_node_web application
# - package-ecosystem: "mix"
# directory: "/implementations/elixir/ockam/ockam_node_web"
# commit-message:
# prefix: "build:"
# schedule:
# interval: "daily"
61 changes: 61 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: All

permissions:
contents: read

on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/all.yml'
- '**.gradle'
- 'tools/gradle/**'
- 'gradlew'
- 'gradlew.bat'
- '.github/actions/**'
push:
paths:
- '.github/workflows/all.yml'
- '**.gradle'
- 'tools/gradle/**'
- 'gradlew'
- 'gradlew.bat'
- '.github/actions/**'
schedule:
- cron: '0 1 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: All - Build
runs-on: ubuntu-20.04
container:
image: ghcr.io/ockam-network/ockam/builder@sha256:e874d5c6323736e18c666aa26d15188b17f2342fee41bf20bdff463ace9bc4ae
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: ./.github/actions/gradle_cache
- uses: ./.github/actions/cargo_home_cache
- uses: ./.github/actions/cargo_target_dir_cache
- uses: ./.github/actions/elixir_cache
- run: ./gradlew build -Pmode=release
- uses: ./.github/actions/cargo_target_dir_pre_cache

list_gradle_tasks:
name: All - List Gradle Tasks
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15, windows-2019]
java: [8, 11, 16, 17]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf
with:
distribution: 'temurin'
check-latest: true
java-version: ${{ matrix.java }}
- uses: ./.github/actions/gradle_cache
- run: ./gradlew tasks --all
Loading

0 comments on commit 4039b86

Please sign in to comment.