|
1 | | -on: |
2 | | - push: |
3 | | - branches: |
4 | | - - master |
5 | | -name: Check Rust Crate |
6 | | -# This just runs the rust crate example to verify that it builds (no undefined references error) |
7 | | -jobs: |
8 | | - build: |
9 | | - runs-on: ${{ matrix.os }}-latest |
10 | | - strategy: |
11 | | - matrix: |
12 | | - os: [ubuntu, windows, macos] |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@v4 |
16 | | - |
17 | | - - name: Install Glfw on Ubuntu |
18 | | - if: matrix.os == 'ubuntu' |
19 | | - # based on glfw/glfw's workflow |
20 | | - run: sudo apt install -y libglfw3-dev libglfw3 libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev |
21 | | - |
22 | | - - name: Shared Build |
23 | | - shell: bash |
24 | | - run: | |
25 | | - cargo run --example=empty --features=prebuilt_libs,sys,cache_libs |
26 | | - cargo build --examples --features=prebuilt_libs,sys,cache_libs |
27 | | -
|
28 | | - - name: Static Build |
29 | | - shell: bash |
30 | | - if: matrix.os != 'macos' |
31 | | - run: | |
32 | | - cargo run --example=empty --features=prebuilt_libs,sys,debug_static_link |
33 | | - cargo run --example=empty --features=prebuilt_libs,sys,static_link |
34 | | - |
| 1 | +on: |
| 2 | + push: |
| 3 | + branches: |
| 4 | + - master |
| 5 | +name: Check Rust Crate |
| 6 | +# This just runs the rust crate example to verify that it builds (no undefined references error) |
| 7 | +jobs: |
| 8 | + build: |
| 9 | + runs-on: ${{ matrix.os }}-latest |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + os: [ubuntu, windows, macos] |
| 13 | + steps: |
| 14 | + - name: Checkout |
| 15 | + uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Install Glfw on Ubuntu |
| 18 | + if: matrix.os == 'ubuntu' |
| 19 | + # based on glfw/glfw's workflow |
| 20 | + run: sudo apt install -y libglfw3-dev libglfw3 libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev |
| 21 | + |
| 22 | + - name: Shared Build |
| 23 | + shell: bash |
| 24 | + run: | |
| 25 | + cargo run --example=empty --features=prebuilt_libs,sys,cache_libs |
| 26 | + cargo build --examples --features=prebuilt_libs,sys,cache_libs |
| 27 | +
|
| 28 | + - name: Static Build |
| 29 | + shell: bash |
| 30 | + if: matrix.os != 'macos' |
| 31 | + run: | |
| 32 | + cargo run --example=empty --features=prebuilt_libs,sys,debug_static_link |
| 33 | + cargo run --example=empty --features=prebuilt_libs,sys,static_link |
| 34 | + |
0 commit comments