Skip to content

Commit

Permalink
Merge pull request #1198 from Wandalen/beta
Browse files Browse the repository at this point in the history
AUTO : Forward from beta to master
  • Loading branch information
Wandalen authored Mar 15, 2024
2 parents 80d70c9 + 53b16e2 commit ae851b0
Show file tree
Hide file tree
Showing 838 changed files with 37,703 additions and 18,816 deletions.
10 changes: 7 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

[env]
MODULES_PATH = { value = "module", relative = true }

[env]
MODULES_PATH = { value = "module", relative = true }
WORKSPACE_PATH = { value = ".", relative = true }

[net]
# offline = true
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/ModuleCargoWillPush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name : cargo_will

on : push

env :
CARGO_TERM_COLOR : always

jobs :

# cargo_will

test :
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : 'module/alias/cargo_will/Cargo.toml'
module_name : 'cargo_will'
commit_message : ${{ github.event.head_commit.message }}
17 changes: 17 additions & 0 deletions .github/workflows/ModuleRefinerPush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name : refiner

on : push

env :
CARGO_TERM_COLOR : always

jobs :

# refiner

test :
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : 'module/move/refiner/Cargo.toml'
module_name : 'refiner'
commit_message : ${{ github.event.head_commit.message }}
17 changes: 17 additions & 0 deletions .github/workflows/ModuleReflectToolsMetaPush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name : reflect_tools_meta

on : push

env :
CARGO_TERM_COLOR : always

jobs :

# reflect_tools_meta

test :
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : 'module/core/reflect_tools_meta/Cargo.toml'
module_name : 'reflect_tools_meta'
commit_message : ${{ github.event.head_commit.message }}
17 changes: 17 additions & 0 deletions .github/workflows/ModuleReflectToolsPush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name : reflect_tools

on : push

env :
CARGO_TERM_COLOR : always

jobs :

# reflect_tools

test :
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : 'module/core/reflect_tools/Cargo.toml'
module_name : 'reflect_tools'
commit_message : ${{ github.event.head_commit.message }}
17 changes: 17 additions & 0 deletions .github/workflows/ModuleUnitorePush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name : unitore

on : push

env :
CARGO_TERM_COLOR : always

jobs :

# unitore

test :
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : 'module/move/unitore/Cargo.toml'
module_name : 'unitore'
commit_message : ${{ github.event.head_commit.message }}
2 changes: 1 addition & 1 deletion .github/workflows/StandardRustPullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs :
with :
manifest_path : './Cargo.toml'
module_name : ${{ github.event.base.ref }}_${{ github.event.number }}
commit_message : ${{ github.event.base.ref }}_${{ github.event.number }}
commit_message : !test_${{ github.event.base.ref }}_${{ github.event.number }}
143 changes: 98 additions & 45 deletions .github/workflows/StandardRustPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,40 +34,93 @@ env :

jobs :

fast :
if : |
!contains( inputs.commit_message, '!test' )
&& !startsWith( inputs.commit_message, 'Merge' )
&& contains( inputs.commit_message, inputs.module_name )
&& !contains( inputs.commit_message, '!only_js' )
concurrency :
group : standard_rust_push_${{ inputs.module_name }}_${{ github.ref }}_${{ matrix.os }}
cancel-in-progress : true
strategy :
fail-fast : false
matrix :
os : [ ubuntu-latest ]
runs-on : ${{ matrix.os }}
steps :
- name : Install latest stable toolchain
uses : Wandalen/wretry.action@master
with :
action : actions-rs/toolchain@v1
with : |
toolchain : stable
checkmate:
if: contains( inputs.commit_message, '!test' ) || contains( inputs.commit_message, 'merge' )
runs-on: ubuntu-latest
steps:
- name: Install latest nightly toolchain
uses: Wandalen/wretry.action@master
with:
action: actions-rs/toolchain@v1
with: |
toolchain : nightly
override : true
attempt_limit : 3
components : clippy
attempt_limit: 3
attempt_delay: 10000
- uses : actions/checkout@v3
- name : Run tests with default features
run : cargo test --manifest-path ${{ inputs.manifest_path }}
- name : Run tests without default features
run : cargo test --manifest-path ${{ inputs.manifest_path }} --no-default-features
- uses: actions/checkout@v3

- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install cargo-udeps
run: cargo install cargo-udeps --locked

- name: Set MANIFEST_ROOT_PATH
id: rootpath
run: echo "::set-output name=path::$(dirname ${{ inputs.manifest_path }})"
- name: Audit the modules
run: cd ${{ steps.rootpath.outputs.path }} && make audit
continue-on-error: true
- name: Generate documentation for the modules
run: make doc open=no manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Lint the modules
run: make lint manifest_path=${{ inputs.manifest_path }} warnings=no
continue-on-error: true
- name: Check the modules
run: make check manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Check the modules dependencies
run: cargo +nightly udeps --all-targets --manifest-path ${{ inputs.manifest_path }}
continue-on-error: true

# release:
# if: contains( inputs.commit_message, '!test' ) || contains( inputs.commit_message, 'merge' )
# strategy:
# fail-fast: false
# matrix:
# os: [ ubuntu-latest, windows-latest, macos-latest ]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Install latest stable toolchain
# uses: Wandalen/wretry.action@master
# with:
# action: actions-rs/toolchain@v1
# with: |
# toolchain : stable
# override : true
# attempt_limit: 3
# attempt_delay: 10000
# - uses: actions/checkout@v3
# with:
# ref: alpha
#
# - name: Make release build
# run: cargo build --manifest-path ${{ inputs.manifest_path }} --release

# miri:
# if: contains( inputs.commit_message, '!test' ) || contains( inputs.commit_message, 'merge' )
# runs-on: ubuntu-latest
# steps:
# - name: Install latest nightly toolchain
# uses: Wandalen/wretry.action@master
# with:
# action: actions-rs/toolchain@v1
# with: |
# toolchain : nightly
# override : true
# components : miri
# attempt_limit: 3
# attempt_delay: 10000
# - uses: actions/checkout@v3
# with:
# ref: alpha

# - name: Test with miri
# run: cargo miri test --manifest-path ${{ inputs.manifest_path }}

full :
if : |
startsWith( inputs.commit_message, 'Merge' )
|| ( contains( inputs.commit_message, '!test' ) && !contains( inputs.commit_message, '!only_js' ) )
will_test :
if : contains( inputs.commit_message, '!test' ) || contains( inputs.commit_message, 'merge' )
concurrency :
group : standard_rust_push_${{ inputs.module_name }}_${{ github.ref }}_${{ matrix.os }}
cancel-in-progress : true
Expand All @@ -86,20 +139,20 @@ jobs :
override : true
attempt_limit : 3
attempt_delay: 10000
- uses : actions/checkout@v3
- name : Run tests in release mode
run : cargo test --manifest-path ${{ inputs.manifest_path }} --release
- name : Install latest nightly toolchain
uses : Wandalen/wretry.action@master
with :
action : actions-rs/toolchain@v1
with : |
- name: Install latest nightly toolchain
uses: Wandalen/wretry.action@master
with:
action: actions-rs/toolchain@v1
with: |
toolchain : nightly
override : true
attempt_limit : 3
attempt_limit: 3
attempt_delay: 10000
- name : Install cargo-hack
run : cargo install cargo-hack
- name : Run tests with each feature
run : cargo hack test --manifest-path ${{ inputs.manifest_path }} --each-feature

- uses: actions/checkout@v3
- name: Install will
run: cargo install --git https://github.com/Wandalen/wTools --branch alpha willbe
- name: Set MANIFEST_ROOT_PATH
id: rootpath
run: echo "::set-output name=path::$(dirname ${{ inputs.manifest_path }})"
- name: Run tests with each feature
run: will .test ${{ steps.rootpath.outputs.path }} dry:0
88 changes: 8 additions & 80 deletions .github/workflows/StandardRustScheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,83 +12,11 @@ env :

jobs :

checkmate :
runs-on : ubuntu-latest
steps :
- name : Install latest nightly toolchain
uses : Wandalen/wretry.action@master
with :
action : actions-rs/toolchain@v1
with : |
toolchain : nightly
override : true
components : clippy
attempt_limit : 3
attempt_delay: 10000
- uses : actions/checkout@v3
with :
ref : alpha

- name : Install cargo-audit
run : cargo install cargo-audit
- name : Install cargo-udeps
run : cargo install cargo-udeps --locked

- name : Audit the modules
run : make audit
continue-on-error : true
- name : Generate documentation for the modules
run : make doc open=no
continue-on-error : true
- name : Lint the modules
run : make lint warnings=no
continue-on-error : true
- name : Check the modules
run : make check
continue-on-error : true
- name : Check the modules dependencies
run : cargo +nightly udeps --all-targets
continue-on-error : true

release :
strategy :
fail-fast : false
matrix :
os : [ ubuntu-latest, windows-latest, macos-latest ]
runs-on : ${{ matrix.os }}
steps :
- name : Install latest stable toolchain
uses : Wandalen/wretry.action@master
with :
action : actions-rs/toolchain@v1
with : |
toolchain : stable
override : true
attempt_limit : 3
attempt_delay: 10000
- uses : actions/checkout@v3
with :
ref : alpha

- name : Make release build
run : cargo build --release

miri :
runs-on : ubuntu-latest
steps :
- name : Install latest nightly toolchain
uses : Wandalen/wretry.action@master
with :
action : actions-rs/toolchain@v1
with : |
toolchain : nightly
override : true
components : miri
attempt_limit : 3
attempt_delay: 10000
- uses : actions/checkout@v3
with :
ref : alpha

- name : Test with miri
run : cargo miri test
tested :
needs: check
if : ${{ needs.check.outputs.should_run == 'true' }}
uses : Wandalen/wTools/.github/workflows/StandardRustPush.yml@alpha
with :
manifest_path : './Cargo.toml'
module_name : $\{{ github.event.base.ref }}_$\{{ github.event.number }}
commit_message : !test_$\{{ github.event.base.ref }}_$\{{ github.event.number }}
Loading

0 comments on commit ae851b0

Please sign in to comment.