License
This commit is contained in:
Elijah McMorris 2023-11-20 11:41:44 -08:00
parent 887458907e
commit 9426313f73
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
7 changed files with 94 additions and 10 deletions

View file

@ -1,5 +1,7 @@
/.devcontainer
/.github
/.vscode
/data
/target
.dockerignore
Cargo.lock

View file

@ -5,15 +5,15 @@ name: Docker
# separate terms of service, privacy policy, and support
# documentation.
on:
# workflow_run:
# workflows: [nextest]
# branches: [main]
# types:
# - completed
schedule:
- cron: 0 0 * * 1
push:
branches: ["main"]
workflow_run:
workflows: [nextest]
branches: [main]
types:
- completed
# schedule:
# - cron: 0 0 * * 1
# push:
# branches: ["main"]
# # Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
# pull_request:
@ -29,7 +29,7 @@ jobs:
build:
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: read
packages: write

45
.github/workflows/nextest.yml vendored Normal file
View file

@ -0,0 +1,45 @@
# https://github.com/nextest-rs/reuse-build-partition-example
# https://keliris.dev/articles/setup-rust-github-actions
name: nextest
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: 0 0 * * 1
env:
CARGO_TERM_COLOR: always
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: rui314/setup-mold@v1
- name: install mold
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
# https://github.com/moonrepo/setup-rust
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
- name: Run tests
run: cargo nextest run -E "all() - test(get_api) - kind(bin)"
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: rui314/setup-mold@v1
- name: install mold
run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold
- uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: clippy
run: cargo clippy

11
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,11 @@
# Contributing code
- Make sure the test pass
- Run `cargo clippy --fix --allow-dirty`
# License
All code in this repository is dual-licensed under either [License-MIT](./LICENSE-MIT) or [LICENSE-APACHE](./LICENSE-Apache) at your option. This means you can select the license you prefer.
[Why dual license](https://github.com/bevyengine/bevy/issues/2373)
# Your contributions
Any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

21
LICENSE-MIT Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Elijah McMorris (NexVeridian)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -38,3 +38,8 @@ Place data in `data\parquet\*.parquet` with the ticker in all caps `ARKK.parquet
`docker compose build && docker compose up`
Remove the cargo cache for buildkit with `docker builder prune --filter type=exec.cachemount`
# License
All code in this repository is dual-licensed under either [License-MIT](./LICENSE-MIT) or [LICENSE-APACHE](./LICENSE-Apache) at your option. This means you can select the license you prefer.
[Why dual license](https://github.com/bevyengine/bevy/issues/2373)