Skip to content

Update Kinc? #37

Update Kinc?

Update Kinc? #37

Workflow file for this run

name: Build
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
if: ${{ !contains(join(github.event.commits.*.message),'[skip ci]') }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: x86_64-apple-darwin
graphics: metal
- os: macos-latest
target: aarch64-apple-ios
graphics: metal
- os: windows-latest
target: x86_64-pc-windows-msvc
graphics: d3d11
- os: windows-latest
target: x86_64-pc-windows-msvc
graphics: d3d12
- os: windows-latest
target: x86_64-pc-windows-msvc
graphics: opengl
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
graphics: opengl
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
graphics: vulkan
# - os: ubuntu-latest
# target: aarch64-linux-android
# graphics: opengl
# - os: ubuntu-latest
# target: aarch64-linux-android
# graphics: vulkan
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Get submodules
run: |
git submodule update --init
kinc/Kinc/get_dlc
git -C krafix/krafix submodule update --init --depth 1
- name: Get LunarG package list.
if: matrix.graphics == 'vulkan'
run: |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
- name: Install Ubuntu packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev libwayland-dev wayland-protocols libxkbcommon-dev libvulkan-dev --yes --quiet
- name: Install Vulkan SDK
if: matrix.graphics == 'vulkan'
run: sudo apt-get install vulkan-sdk
- name: Run cargo build
run: |
cargo build -p shader --features=kinc/${{ matrix.graphics }} --target=${{ matrix.target }}