diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b254df5e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build +on: + push: + branches: + - "main" + paths-ignore: + - "/docs" + - "README.md" + pull_request: + paths-ignore: + - "/docs" + - "README.md" +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v3 + - name: "Cache" + uses: Swatinem/rust-cache@v2 + - name: "External dependencies" + run: sudo apt-get install -y libasound2-dev portaudio19-dev build-essential libpulse-dev libdbus-1-dev libudev-dev + - name: "Checks" + run: | + cargo update + #cargo fmt --check + #cargo clippy --no-deps --tests -- -D warnings + #cargo rustdoc -- -D warnings + - name: "Build" + run: | + cargo build + cargo build --examples + - name: "Test" + run: | + cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 58c51010..e6973e2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,7 @@ linked = ["openxr/linked", "openxr/static"] [dependencies] anyhow = "1.0.75" ash = "0.37.3" -bevy = { git = "https://github.com/awtterpip/bevy", default-features = false, features = [ - "bevy_render", -], rev = "ac28b11797c0a85b431ee4940c6afa434f712f7a" } +bevy = { git = "https://github.com/awtterpip/bevy", rev = "98f3b8ae207deb440f7255b3d900e7e01b6df0cb" } openxr = { version = "0.17.1", features = ["mint"] } mint = "0.5.9" wgpu = "0.16.0" @@ -20,7 +18,7 @@ wgpu-core = { version = "0.16.0", features = ["vulkan"] } wgpu-hal = "0.16.0" [dev-dependencies] -bevy = { git = "https://github.com/awtterpip/bevy", rev = "ac28b11797c0a85b431ee4940c6afa434f712f7a" } +bevy = { git = "https://github.com/awtterpip/bevy", rev = "98f3b8ae207deb440f7255b3d900e7e01b6df0cb" } color-eyre = "0.6.2" [[example]]