run the uithread in the main thread #83
Workflow file for this run
This file contains 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
name: Build | |
on: | |
push: | |
pull_request: | |
schedule: | |
# Weekly build (on saturday) | |
- cron: '0 0 * * 6' | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update apt indexes | |
run: sudo apt-get update | |
- name: Install various apt dependencies | |
run: sudo apt-get install build-essential cmake meson ninja-build nlohmann-json3-dev pkg-config libssl-dev libsdl2-dev | |
- name: Configure Meson | |
run: meson setup ${{github.workspace}}/build | |
- name: Build | |
run: meson compile -C ${{github.workspace}}/build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ubuntu-build | |
path: ${{github.workspace}}/build | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install dependencies (brew) | |
run: brew install gcc meson nlohmann-json sdl2 curl | |
- name: Meson setup | |
run: PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig" meson setup ${{github.workspace}}/build | |
env: | |
CC: gcc | |
- run: meson compile -C ${{github.workspace}}/build -v | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: macos-build | |
path: ${{github.workspace}}/build | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update apt indexes | |
run: sudo apt-get update | |
- name: Install various apt dependencies | |
run: sudo apt-get install build-essential cmake meson ninja-build nlohmann-json3-dev pkg-config libssl-dev libsdl2-dev | |
- name: Configure Meson | |
run: meson setup ${{github.workspace}}/build | |
- name: Format | |
run: ninja -C ${{github.workspace}}/build clang-format | |
- name: Check for formatting disagreements | |
run: git diff --exit-code |