fix CI build #225
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download deps | |
run: sudo apt-get update && sudo apt-get install libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev libgl1-mesa-dev libglu1-mesa-dev | |
shell: bash | |
- uses: actions/checkout@v2 | |
- uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0 | |
- name: Build | |
run: zig build -Dzfltk-use-zigcc=true | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0 | |
- name: Build | |
run: zig build -Dzfltk-use-zigcc=true | |
build_windows-mingw: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
- shell: msys2 {0} | |
run: | | |
pacman -Sy | |
pacman --noconfirm -S $MINGW_PACKAGE_PREFIX-cmake $MINGW_PACKAGE_PREFIX-gcc $MINGW_PACKAGE_PREFIX-ninja wget unzip git --needed | |
wget https://ziglang.org/builds/zig-windows-x86_64-0.12.0.zip | |
unzip -qq zig-windows-x86_64-0.12.0.zip | |
git submodule update --init --recursive | |
zig-windows-x86_64-0.12.0/zig build --search-prefix $MINGW_PREFIX | |
# build_windows: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: goto-bus-stop/setup-zig@v2 | |
# with: | |
# version: 0.12.0 | |
# - uses: seanmiddleditch/gha-setup-ninja@master | |
# - name: build | |
# shell: bash | |
# run: zig build |