[UPD] : update github actions for auto upload to draft release #79
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
| name: Osx Clang | |
| on: | |
| push: | |
| branches: | |
| - DemoApp | |
| paths-ignore: | |
| - 'cmake/**' | |
| - '.github/**' | |
| - 'doc/**' | |
| - 'samples/**' | |
| jobs: | |
| Osx_Clang: | |
| strategy: | |
| matrix: | |
| fs: [DIRENT, STD] | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: DemoApp | |
| - name: checkout submodules | |
| run : git submodule update --init --recursive | |
| - name: Install OpenGL lib / Requirement for Glfw3 | |
| run : brew update | |
| - name: configure | |
| run: > | |
| mkdir build && cd build && cmake .. | |
| -DCMAKE_C_COMPILER=clang | |
| -DCMAKE_CXX_COMPILER=clang++ | |
| -DCMAKE_BUILD_TYPE=Release | |
| -DUSE_TEST=ON | |
| -DUSE_${{ matrix.fs }}_FILESYSTEM=ON | |
| - name: build | |
| run: cmake --build build --config Release | |
| - name: ctest | |
| run: ctest --test-dir build --output-on-failure | |
| - name: upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ImGuiFileDialog_DemoApp_Osx_${{ matrix.fs }}_FS | |
| path: bin/ImGuiFileDialog_DemoApp_* | |
| - name: Upload to DRAFT release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: nightly-draft | |
| name: Nightly Draft | |
| draft: true | |
| prerelease: false | |
| append_body: true | |
| files: bin/ImGuiFileDialog_DemoApp_* |