Skip to content

Commit

Permalink
change github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem V. Ageev committed Mar 31, 2024
1 parent fb87802 commit 45aff76
Showing 1 changed file with 116 additions and 7 deletions.
123 changes: 116 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ jobs:
- windows-latest
- macos-11
- ubuntu-latest
demo:
- calendar
- flcsv


steps:
- name: Download deps
run: |
Expand All @@ -41,8 +38,120 @@ jobs:
git clone https://github.com/MoAlyousef/cfltk && cd cfltk && git submodule update --init --recursive && cmake -Bbin -GNinja -DOPTION_USE_SYSTEM_LIBPNG=OFF -DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DOPTION_USE_GL=ON -DCFLTK_USE_OPENGL=ON -DCFLTK_SINGLE_THREADED=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCFLTK_CARGO_BUILD=ON -DFLTK_BUILD_EXAMPLES=OFF -DFLTK_BUILD_TEST=OFF -DOPTION_LARGE_FILE=ON -DOPTION_USE_THREADS=ON -DOPTION_BUILD_HTML_DOCUMENTATION=OFF -DOPTION_BUILD_PDF_DOCUMENTATION=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release && cmake --build bin --parallel --target install && set CFLTK_BUNDLE_DIR=$(pwd)/bin/lib
fi
shell: bash
- name: "Build ${{ matrix.demo }}"
- name: Build calendar
working-directory: calendar
shell: bash
run: cargo build --verbose
- name: Build csv
run: cargo build --verbose
working-directory: flcsv
shell: bash
- name: Build femtovg
run: cargo build --verbose
working-directory: flfemtovg
shell: bash
- name: Build ffmpeg
run: |
if [ "$RUNNER_OS" == "Linux" ] || [ "$RUNNER_OS" == "macOS" ]; then
cargo build --verbose
fi
working-directory: ffmpeg
shell: bash
- name: Build framebuffer
run: cargo build --verbose
working-directory: framebuffer
shell: bash
- name: Build glium
run: cargo build --verbose
working-directory: flglium
shell: bash
- name: Build glow
run: cargo build --verbose
working-directory: flglow
shell: bash
- name: Build glut
run: cargo build --verbose
working-directory: glut
shell: bash
- name: Build image
run: cargo build --verbose
working-directory: flimage
shell: bash
- name: Build libvlc
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
cargo build --verbose
fi
working-directory: libvlc
shell: bash
- name: Build mpv
run: cargo build --verbose
working-directory: mpv
shell: bash
- name: Build musicplayer
run: cargo build --verbose
working-directory: musicplayer
shell: bash
- name: Build opengl
run: cargo build --verbose
working-directory: opengl
shell: bash
- name: Build pixels
run: cargo build --verbose
working-directory: flpixels
shell: bash
- name: Build plotters
run: cargo build --verbose
working-directory: flplotters
shell: bash
- name: Build raqote
run: cargo build --verbose
working-directory: flraqote
shell: bash
- name: Build rounded-svg
run: cargo build --verbose
working-directory: rounded-svg
shell: bash
- name: Build speedy2d
run: cargo build --verbose
working-directory: flspeedy2d
shell: bash
- name: Build systray
run: cargo build --verbose
working-directory: systray
shell: bash
- name: Build tinyskia
run: cargo build --verbose
working-directory: tinyskia
shell: bash
- name: Build web-todo
run: cargo build --verbose
working-directory: web-todo
shell: bash
- name: Build web-todo2
run: cargo build --verbose
working-directory: web-todo2
shell: bash
- name: Build webview
run: cargo build --verbose
working-directory: webview
shell: bash
- name: Build wgpu
run: cargo build --verbose
working-directory: flwgpu
shell: bash
- name: Build xterm
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
cargo build --verbose
fi
working-directory: xterm
shell: bash
- name: Build egui-demo
run: cargo build --verbose
working-directory: egui-demo
shell: bash
- name: Build terminal
run: cargo build --verbose
with:
working-directory: ${{ matrix.demo }}
working-directory: terminal
shell: bash

0 comments on commit 45aff76

Please sign in to comment.