-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (33 loc) · 1.22 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on: [push, pull_request]
name: CI
jobs:
build_and_test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt-get install mesa-common-dev libx11-dev libxcursor-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxi-dev libgl1-mesa-dev
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Build BGFX Debug
run: cargo build --verbose -F bgfx-debug
- name: Build BGFX Release
run: cargo build --release
- name: Build BGFX Release + examples
run: cargo build --release --example cubes --example helloworld
- name: Build BGFX Debug + examples
run: cargo build --example cubes --example helloworld
build_emscripten:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Emscripten
uses: mymindstorm/setup-emsdk@v11
- name: Install emscripten Rust tools
run: rustup target add wasm32-unknown-emscripten
- name: Build Web example
run: cd web_example && cargo build --target=wasm32-unknown-emscripten