Update workflow
This commit is contained in:
parent
69bcff7fa6
commit
8477acc1d4
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -5,12 +5,28 @@ name: Build
|
|||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Rust project
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Checkout submodules
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
||||||
|
git submodule sync --recursive
|
||||||
|
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
||||||
|
|
||||||
|
- name: Install Raylib deps
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: sudo apt-get update && sudo apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev cmake llvm-dev libclang-dev clang -y
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# raylib-ffi
|
# Direct raylib bindings for Rust
|
||||||
[](https://crates.io/crates/raylib-ffi)
|
[](https://crates.io/crates/raylib-ffi)
|
||||||
[](https://docs.rs/raylib-ffi)
|
[](https://docs.rs/raylib-ffi)
|
||||||
[](https://github.com/Ewpratten/raylib-ffi/actions/workflows/build.yml)
|
[](https://github.com/Ewpratten/raylib-ffi/actions/workflows/build.yml)
|
||||||
@ -12,5 +12,5 @@ repo description
|
|||||||
Fedora:
|
Fedora:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
dnf install clang-devel alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic
|
dnf install clang-devel alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic cmake
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user