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/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
|
||||||
- name: Install stable toolchain
|
- name: Install nightly toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: Install Dependencies
|
- 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
|
- name: Run cargo test
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
||||||
@ -53,12 +53,12 @@ jobs:
|
|||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
|
||||||
- name: Install stable toolchain
|
- name: Install nightly toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Install Dependencies
|
- 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
|
- name: Run clippy
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
@ -70,8 +70,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install stable toolchain
|
- name: Install nightly toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Run cargo fmt
|
- name: Run cargo fmt
|
||||||
|
@ -7,13 +7,13 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# update with the name of the main binary
|
# update with the name of the main binary
|
||||||
binary: bevy_github_ci_template
|
binary: bevy_gitea_ci_template
|
||||||
add_binaries_to_github_release: true
|
add_binaries_to_github_release: true
|
||||||
#itch_target: <itch.io-username>/<game-name>
|
#itch_target: <itch.io-username>/<game-name>
|
||||||
|
|
||||||
# Before enabling LFS, please take a look at GitHub's documentation for costs and quota limits:
|
# 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
|
# 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:
|
jobs:
|
||||||
@ -28,7 +28,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: ${{ env.use_git_lfs }}
|
lfs: ${{ env.use_git_lfs }}
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
targets: wasm32-unknown-unknown
|
targets: wasm32-unknown-unknown
|
||||||
- name: install wasm-bindgen-cli
|
- name: install wasm-bindgen-cli
|
||||||
@ -76,12 +76,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: ${{ env.use_git_lfs }}
|
lfs: ${{ env.use_git_lfs }}
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
targets: x86_64-unknown-linux-gnu
|
targets: x86_64-unknown-linux-gnu
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -125,7 +125,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: ${{ env.use_git_lfs }}
|
lfs: ${{ env.use_git_lfs }}
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
targets: x86_64-pc-windows-msvc
|
targets: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: ${{ env.use_git_lfs }}
|
lfs: ${{ env.use_git_lfs }}
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
targets: x86_64-apple-darwin
|
targets: x86_64-apple-darwin
|
||||||
- name: Environment Setup
|
- name: Environment Setup
|
||||||
@ -217,7 +217,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: ${{ env.use_git_lfs }}
|
lfs: ${{ env.use_git_lfs }}
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
targets: aarch64-apple-darwin
|
targets: aarch64-apple-darwin
|
||||||
- name: Environment
|
- name: Environment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user