-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Bevy 0.10 and release v 0.4 (#30)
* Bump version numbers * Simple migrations * Repair gamepad.rs example * Faster CI * Add release notes stub * App:update no longer sends AppExit
- Loading branch information
1 parent
ff29b3f
commit c1779b5
Showing
9 changed files
with
120 additions
and
158 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 |
---|---|---|
@@ -1,121 +1,85 @@ | ||
# modified from: https://github.com/bevyengine/bevy/blob/main/.github/workflows/ci.yml | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
toolchain: [stable] | ||
os: [windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
check-lints: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-build-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }} | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
override: true | ||
- name: Cache Cargo build files | ||
uses: Leafwing-Studios/[email protected] | ||
- name: Install alsa and udev | ||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | ||
- name: CI job | ||
# See tools/ci/src/main.rs for the commands this runs | ||
run: cargo run -p ci -- lints | ||
|
||
check-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
toolchain: stable | ||
override: true | ||
- name: Cache Cargo build files | ||
uses: Leafwing-Studios/[email protected] | ||
- name: Install alsa and udev | ||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | ||
if: runner.os == 'linux' | ||
- name: Build & run tests | ||
run: cargo test --workspace | ||
# See tools/ci/src/main.rs for the commands this runs | ||
run: cargo run -p ci -- test | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-C debuginfo=0 -D warnings" | ||
|
||
ci: | ||
runs-on: windows-latest | ||
check-compiles: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-ci-${{ hashFiles('**/Cargo.toml') }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
override: true | ||
- name: CI job | ||
- name: Cache Cargo build files | ||
uses: Leafwing-Studios/[email protected] | ||
- name: Install alsa and udev | ||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | ||
- name: Check Compile | ||
# See tools/ci/src/main.rs for the commands this runs | ||
run: cargo run -p ci | ||
|
||
check-markdown-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: check dead links | ||
continue-on-error: true | ||
id: run1 | ||
uses: gaurav-nelson/github-action-markdown-link-check@9710f0fec812ce0a3b98bef4c9d842fc1f39d976 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: '.github/linters/markdown-link-check.json' | ||
- name: Sleep for 30 seconds | ||
if: steps.run1.outcome=='failure' | ||
run: sleep 30s | ||
shell: bash | ||
- name: check dead links (retry) | ||
continue-on-error: true | ||
id: run2 | ||
if: steps.run1.outcome=='failure' | ||
uses: gaurav-nelson/github-action-markdown-link-check@9710f0fec812ce0a3b98bef4c9d842fc1f39d976 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: '.github/linters/markdown-link-check.json' | ||
- name: Sleep for 30 seconds | ||
if: steps.run2.outcome=='failure' | ||
run: sleep 30s | ||
shell: bash | ||
- name: check dead links (retry 2) | ||
continue-on-error: true | ||
id: run3 | ||
if: steps.run2.outcome=='failure' | ||
uses: gaurav-nelson/github-action-markdown-link-check@9710f0fec812ce0a3b98bef4c9d842fc1f39d976 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: '.github/linters/markdown-link-check.json' | ||
- name: set the status | ||
if: always() | ||
run: | | ||
if ${{ steps.run1.outcome=='success' || steps.run2.outcome=='success' || steps.run3.outcome=='success' }}; then | ||
echo success | ||
else | ||
exit 1 | ||
fi | ||
run: cargo run -p ci -- compile | ||
|
||
markdownlint: | ||
check-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
- name: Run Markdown Lint | ||
uses: docker://ghcr.io/github/super-linter:slim-v4 | ||
toolchain: stable | ||
- name: Cache Cargo build files | ||
uses: Leafwing-Studios/[email protected] | ||
- name: Install alsa and udev | ||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | ||
if: runner.os == 'linux' | ||
- name: Build and check doc | ||
# See tools/ci/src/main.rs for the commands this runs | ||
run: cargo run -p ci -- doc | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_MARKDOWN: true | ||
DEFAULT_BRANCH: main | ||
RUSTFLAGS: "-C debuginfo=0" | ||
# - name: Installs cargo-deadlinks | ||
# run: cargo install --force cargo-deadlinks | ||
# - name: Checks dead links | ||
# run: cargo deadlinks |
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
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
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.