Merge pull request #589 from coderedart/master #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run cargo check on all platforms | |
| name: Check | |
| on: [push] | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: lukka/get-cmake@latest | |
| - name: Install dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libglfw3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev libglfw3-dev cmake | |
| # glfw 3.4 is not available on ubuntu yet. So, skip pkg-config check for now. | |
| - name: PreBuilt Libs | |
| if: matrix.os != 'ubuntu-latest' | |
| run: cargo run --example=version --features=prebuilt-libs | |
| - name: Src Builds | |
| run: | | |
| cargo run --example=version --features=src-build | |
| cargo run --example=version --features=src-build,static-link |