-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synchronize CI functions with Amethyst #233
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f7abc9f
update dependencies
ezpuzz 23f888b
copy CI config from amethyst
ezpuzz 39c34d8
remove Fetch and FetchMut and use RefCell instead of UnsafeCell
ezpuzz 35d6533
improve split tests
ezpuzz 01a8749
dont subtract readonly permissions from subworld split
ezpuzz 0ec6bc0
fmt and add a test
ezpuzz bd18625
add cargo hack featuer-powerset
ezpuzz 8a0f17f
fix up feature flags config
ezpuzz 2cd058d
add required-features to systems_par_for_each test
ezpuzz e531be6
change rustfmt install
ezpuzz 549898e
nightly has rustfmt
ezpuzz 7d1a000
fix rustfmt and mdbook commands in ci
ezpuzz d4556a2
replace my not thread safe stuff with atomic_refcell
ezpuzz d972155
manual rustfmt install on nightly
ezpuzz 27677aa
fix rustfmt nightly install cmd
ezpuzz a14dfb8
change powerset to each in CI
ezpuzz 3a96851
fix ci
ezpuzz 7ec45ef
oops
ezpuzz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,4 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: ['https://amethyst.rs/donate'] | ||
open_collective: amethyst |
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,27 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
## Description | ||
<!--- Describe your changes in detail --> | ||
<!--- Separate Additions, Removals and Modifications --> | ||
|
||
|
||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- If it fixes an open issue, please link to the issue here. --> | ||
|
||
|
||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
|
||
|
||
|
||
## Checklist: | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme. | ||
- [ ] My code follows the code style of this project. | ||
- [ ] If my change required a change to the documentation I have updated the documentation accordingly. | ||
- [ ] I have updated the content of the book if this PR would make the book outdated. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] My code is used in an example. |
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,32 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
template: | | ||
# What's Changed | ||
|
||
$CHANGES | ||
categories: | ||
- title: '🚀 Features and Improvements' | ||
labels: | ||
- 'type: feature' | ||
- 'type: improvement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'type: bug' | ||
- title: '🧰 Maintenance' | ||
labels: | ||
- 'type: maintenance' | ||
|
||
version-resolver: | ||
minor: | ||
labels: | ||
- 'type: breaking' | ||
patch: | ||
labels: | ||
- 'type: feature' | ||
- 'type: improvement' | ||
- 'type: bug' | ||
- 'type: maintenance' | ||
- 'team: documentation' | ||
|
||
exclude-labels: | ||
- 'skip-changelog' |
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,99 +1,67 @@ | ||
name: CI | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
# bors needs CI to trigger for pushes to its staging/trying branches | ||
- staging | ||
- trying | ||
pull_request: | ||
|
||
env: | ||
RUSTFLAGS: -Cdebuginfo=0 | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
check: | ||
name: Compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
- uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build- | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all | ||
|
||
check-features: | ||
name: Features | ||
runs-on: ubuntu-latest | ||
needs: [check] | ||
tests: | ||
name: Tests | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.toolchain == 'nightly' }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
features: | ||
- --all-features --release | ||
- --no-default-features --release | ||
- --all-features | ||
- --no-default-features | ||
- --no-default-features --features parallel | ||
- --no-default-features --features extended-tuple-impls | ||
- --no-default-features --features serialize | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
- uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build- | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all ${{ matrix.features }} | ||
- uses: actions/checkout@v2 | ||
|
||
fmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
- name: install ${{ matrix.toolchain }} toolchain | ||
id: install_toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
components: rustfmt | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: CFG_RELEASE_CHANNEL="nightly" CFG_RELEASE="nightly" cargo +nightly install --force rustfmt-nightly --git https://github.com/rust-lang/rustfmt --tag v1.4.35 --all-features | ||
if: matrix.toolchain == 'nightly' && matrix.os == 'ubuntu-latest' | ||
|
||
- run: cargo +nightly fmt --all -- --check | ||
if: matrix.toolchain == 'nightly' && matrix.os == 'ubuntu-latest' | ||
|
||
- run: rustup component add clippy | ||
- uses: actions-rs/cargo@v1 | ||
if: matrix.toolchain == 'nightly' | ||
|
||
- run: cargo +nightly clippy -Z unstable-options --workspace --all-targets --all-features | ||
if: matrix.toolchain == 'nightly' | ||
|
||
- run: cargo install cargo-hack | ||
- run: cargo hack test --workspace --each-feature | ||
|
||
- uses: peaceiris/actions-mdbook@v1 | ||
with: | ||
command: clippy | ||
args: --all -- -D warnings | ||
mdbook-version: 'latest' | ||
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' | ||
|
||
- run: cargo install mdbook-linkcheck | ||
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' | ||
|
||
- run: mdbook build docs/book | ||
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' | ||
|
||
- run: mdbook test -L ./target/debug/deps docs/book | ||
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' |
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,24 @@ | ||
name: cargo-deny | ||
|
||
on: [pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
checks: | ||
- advisories | ||
- bans licenses sources | ||
|
||
# Prevent sudden announcement of a new advisory from failing ci: | ||
continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
command: check ${{ matrix.checks }} |
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,14 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,3 +1,4 @@ | ||
target | ||
**/*.rs.bk | ||
Cargo.lock | ||
docs/book/book |
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,14 @@ | ||
{ | ||
"rust-analyzer.lens.enable": false, | ||
"rust-analyzer.checkOnSave.overrideCommand": [ | ||
"cargo", | ||
"+nightly", | ||
"clippy", | ||
"-Z", | ||
"unstable-options", | ||
"--message-format=json", | ||
"--workspace", | ||
"--no-default-features", | ||
"--all-targets" | ||
], | ||
} | ||
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 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,6 +1,5 @@ | ||
use criterion::*; | ||
use itertools::*; | ||
|
||
use legion::*; | ||
|
||
#[derive(Copy, Clone, Debug, PartialEq)] | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this committed to the repo? The CodeLens disable in particular seems suspect?