Skip to content

Commit

Permalink
Fixed nightly version.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundo-villa committed Aug 25, 2023
1 parent 7ec1d63 commit b6a9fd2
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 263 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build Engine and Run Unit Tests

on:
push:
Expand All @@ -12,29 +12,19 @@ env:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: rui314/setup-mold@v1
- name: Install system libraries
- name: Install Vulkan runtime dependencies
run: sudo add-apt-repository ppa:kisak/kisak-mesa && sudo apt-get update && sudo apt-get install -y mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-validationlayers
- name: Prepare Vulkan SDK
- name: Install Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.0
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build & Run tests
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Run unit tests
run: cargo test --verbose -- --test-threads 1
Loading

0 comments on commit b6a9fd2

Please sign in to comment.