-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update CI pipelines to match Jumpy. (#116)
- Loading branch information
Showing
6 changed files
with
129 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,71 +1,57 @@ | ||
name: Documentation | ||
name: 🗒 Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- staging | ||
- trying | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
book: | ||
name: Build Docs | ||
name: 🔨 Build Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source | ||
- name: ⬇ ️Checkout Source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
- name: 🧰 Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y -q \ | ||
libasound2-dev \ | ||
libudev-dev | ||
- name: Install Rust | ||
- name: 🦀 Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
|
||
- name: Install mdbook | ||
- name: 📖 Install mdbook | ||
uses: peaceiris/actions-mdbook@v1 | ||
with: | ||
mdbook-version: "0.4.22" | ||
|
||
- uses: actions/cache@v3 | ||
name: Cache cargo registry | ||
name: ♻️ Cache Cargo | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: cargo-registry | ||
- uses: actions/cache@v3 | ||
name: Cache cargo target | ||
with: | ||
path: | | ||
target/ | ||
web-target/ | ||
key: Linux-cargo-target-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Test Book Rust Examples | ||
run: | | ||
cargo b -p bones_ecs | ||
mdbook test book -L target/debug/deps | ||
key: docs-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
docs- | ||
- name: Build Rustdoc | ||
- name: 🔨 Build Rustdoc | ||
run: | | ||
cargo doc --workspace --no-deps | ||
mv target/doc book/src/rustdoc | ||
- name: Build MDBook | ||
run: | | ||
cd book | ||
mdbook build | ||
- name: Deploy 🚀 | ||
uses: peaceiris/actions-gh-pages@v3 | ||
- name: 🚀 Deploy | ||
uses: JamesIves/github-pages-deploy-action@4.1.3 | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./book/dist | ||
branch: gh-pages | ||
folder: ./book/dist | ||
target-folder: 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,20 @@ | ||
name: 🕵 Lint Merge Group Commit Message | ||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
commitlint: | ||
name: 🔎 Lint Commit Message | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout Source | ||
uses: actions/checkout@v3 | ||
if: github.event_name == 'merge_group' | ||
with: | ||
fetch-depth: 2 | ||
- name: 🔎 Lint Commit Message | ||
uses: wagoid/commitlint-github-action@v5 | ||
if: github.event_name == 'merge_group' | ||
with: | ||
commitDepth: 1 |
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,17 +1,20 @@ | ||
name: Pull Requests | ||
name: ⏮️ Pull Requests | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
merge_group: | ||
|
||
jobs: | ||
main: | ||
name: Validate conventional PR title | ||
name: 🕵 Validate Conventional PR Title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
name: 🔎 Validate Conventional PR Title | ||
if: github.event_name == 'pull_request_target' | ||
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This section is considered when running `cargo deny check licenses` | ||
# More documentation for the licenses section can be found here: | ||
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html | ||
[licenses] | ||
unlicensed = "deny" | ||
allow = [ | ||
"MIT", | ||
"Apache-2.0", | ||
"Unlicense", | ||
"Zlib", | ||
"Apache-2.0 WITH LLVM-exception", | ||
"Unicode-DFS-2016", | ||
"BSD-3-Clause", | ||
"BSL-1.0", | ||
"MIT-0", | ||
"OFL-1.1", | ||
"LicenseRef-UFL-1.0", | ||
"CC0-1.0", | ||
"ISC", | ||
"BSD-2-Clause", | ||
"MPL-2.0", # TODO(zicklag): I believe MPL is fine for us, but maybe double-check this. | ||
"OpenSSL", | ||
] | ||
default = "deny" | ||
|
||
[sources.allow-org] | ||
github = [ | ||
"fishfolk", | ||
] |