Skip to content

0.12: Image Settings and Bind Group Ergonomics #2075

0.12: Image Settings and Bind Group Ergonomics

0.12: Image Settings and Bind Group Ergonomics #2075

Workflow file for this run

name: CI
on:
pull_request:
merge_group:
push:
branches:
- 'staging'
- 'trying'
jobs:
generate-assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
generate-assets/target/
key: ${{ runner.os }}-generate-assets-${{ hashFiles('generate-assets/Cargo.toml') }}
- name: Get cache key
id: cache-key
run: echo "::set-output name=key::$(date +'%Y-%m-%d')"
- name: Get crates.io datadump from cache
uses: actions/cache@v2
with:
path: generate-assets/data
key: ${{ runner.os }}-${{ steps.cache-key.outputs.key }}
- name: "Build Bevy Assets"
run: >
cd generate-assets &&
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} &&
./generate_assets.sh
- uses: actions/upload-artifact@master
with:
name: generated-assets
path: content/assets
retention-days: 1
generate-errors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
generate-errors/target/
key: ${{ runner.os }}-generate-errors-${{ hashFiles('generate-errors/Cargo.toml') }}
- name: "Build Bevy Error Codes"
run: >
cd generate-errors &&
./generate_errors.sh
- uses: actions/upload-artifact@master
with:
name: generated-errors
path: content/learn/errors
retention-days: 1
generate-wasm-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-generate-wasm-examples-${{ hashFiles('generate-wasm-examples/bevy/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- name: "Build Bevy Examples"
run: |
cd generate-wasm-examples &&
./generate_wasm_examples.sh
- uses: actions/upload-artifact@master
with:
name: generated-wasm-examples
path: content/examples
retention-days: 1
- uses: actions/upload-artifact@master
with:
name: generated-wasm-examples-webgpu
path: content/examples-webgpu
retention-days: 1
generate-community:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
generate-community/target/
key: ${{ runner.os }}-generate-community-${{ hashFiles('generate-community/Cargo.toml') }}
- name: "Build Bevy Community"
run: >
cd generate-community &&
./generate_community.sh
- uses: actions/upload-artifact@master
with:
name: generated-community
path: content/community/people
retention-days: 1
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
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
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN: true
DEFAULT_BRANCH: main
build-website:
runs-on: ubuntu-latest
needs: [markdownlint, generate-assets, generate-errors, generate-wasm-examples, generate-community]
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: generated-assets
path: content/assets
- uses: actions/download-artifact@master
with:
name: generated-errors
path: content/learn/errors
- uses: actions/download-artifact@master
with:
name: generated-wasm-examples
path: content/examples
- uses: actions/download-artifact@master
with:
name: generated-wasm-examples-webgpu
path: content/examples-webgpu
- uses: actions/download-artifact@master
with:
name: generated-community
path: content/community/people
- name: "Build website"
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
BUILD_ONLY: true
TOKEN: fake-secret