Use nightly rust; add missing deps; enable LFS on releases
This commit is contained in:
parent
343cd30d80
commit
3da496b046
@ -28,10 +28,10 @@ jobs:
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
|
||||
- name: Install stable toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install nightly toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev
|
||||
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev clang lld
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
|
||||
@ -53,12 +53,12 @@ jobs:
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
|
||||
- name: Install stable toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install nightly toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
components: clippy
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev
|
||||
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev clang lld
|
||||
- name: Run clippy
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
@ -70,8 +70,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
- name: Install stable toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install nightly toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Run cargo fmt
|
||||
|
@ -7,13 +7,13 @@ on:
|
||||
|
||||
env:
|
||||
# update with the name of the main binary
|
||||
binary: bevy_github_ci_template
|
||||
binary: bevy_gitea_ci_template
|
||||
add_binaries_to_github_release: true
|
||||
#itch_target: <itch.io-username>/<game-name>
|
||||
|
||||
# Before enabling LFS, please take a look at GitHub's documentation for costs and quota limits:
|
||||
# https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-storage-and-bandwidth-usage
|
||||
use_git_lfs: false
|
||||
use_git_lfs: true
|
||||
|
||||
|
||||
jobs:
|
||||
@ -28,7 +28,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: ${{ env.use_git_lfs }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: wasm32-unknown-unknown
|
||||
- name: install wasm-bindgen-cli
|
||||
@ -76,12 +76,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: ${{ env.use_git_lfs }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: x86_64-unknown-linux-gnu
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
|
||||
sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev clang lld
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@ -125,7 +125,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: ${{ env.use_git_lfs }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: x86_64-pc-windows-msvc
|
||||
|
||||
@ -171,7 +171,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: ${{ env.use_git_lfs }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: x86_64-apple-darwin
|
||||
- name: Environment Setup
|
||||
@ -217,7 +217,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: ${{ env.use_git_lfs }}
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: aarch64-apple-darwin
|
||||
- name: Environment
|
||||
|
Loading…
Reference in New Issue
Block a user