-
-
Notifications
You must be signed in to change notification settings - Fork 33
31 lines (29 loc) · 861 Bytes
/
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
name: CI
on:
push:
pull_request:
jobs:
build-from-source:
name: build from source
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
feature: ["build-from-source"]
build_mode: [""]
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps
- name: Build sdl3
shell: bash
env:
CI_BUILD_FEATURES: "raw-window-handle"
RUST_TEST_THREADS: 1
run: |
set -xeuo pipefail
rustc --version
cargo --version
cargo build --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
cargo build --examples --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}