From 66dbe97dbc0f8ad2a73086fff8500a949aa1a5a8 Mon Sep 17 00:00:00 2001 From: Tomas Jira Date: Sat, 27 Apr 2024 08:39:46 +0200 Subject: [PATCH] update workflows --- .github/workflows/linecount.yml | 26 ++++++++++++++++++++++++++ .github/workflows/release.yml | 19 +++++++++---------- README.md | 15 ++------------- 3 files changed, 37 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/linecount.yml diff --git a/.github/workflows/linecount.yml b/.github/workflows/linecount.yml new file mode 100644 index 0000000..5142427 --- /dev/null +++ b/.github/workflows/linecount.yml @@ -0,0 +1,26 @@ +name: Mixed inputs + +on: + workflow_dispatch: + inputs: + name: + type: choice + description: Who to greet + options: + - monalisa + - cschleiden + message: + required: true + use-emoji: + type: boolean + description: Include 🎉🤣 emojis + environment: + type: environment + +jobs: + greet: + runs-on: ubuntu-latest + + steps: + - name: Send greeting + run: echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb66423..9734306 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,10 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Install Packages - run: sudo apt install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev + - uses: actions/checkout@v4 - name: Configure Fractoid run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} @@ -31,15 +28,16 @@ jobs: run: mv bin/fractoid bin/fractoid_linux_x86-64 - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: linux path: bin/fractoid_linux_x86-64 build_windows_x86-64: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Packages run: pip install jinja2 @@ -54,8 +52,9 @@ jobs: run: mv bin/fractoid.exe bin/fractoid_windows_x86-64.exe - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: windows path: bin/fractoid_windows_x86-64.exe release: @@ -63,14 +62,14 @@ jobs: needs: [build_linux_x86-64, build_windows_x86-64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Copy x86-64 Binaries to the Root Folder run: | - cp artifact/fractoid_linux_x86-64 fractoid && cp artifact/fractoid_windows_x86-64.exe fractoid.exe + cp linux/fractoid_linux_x86-64 fractoid && cp windows/fractoid_windows_x86-64.exe fractoid.exe - name: Create x86-64 Packages run: | diff --git a/README.md b/README.md index 9a80680..09d7b02 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,7 @@ Below are all the fractals and algorithms that are implemented in fractoid. ## 🛠️ Compilation -The compilation is meant for linux users. You can compile it similarly on windows, but I recommend downloading the latest release binary. Before compilation, please install some basic X libraries. - -```bash -sudo apt install libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev -``` - -After that, you can compile fractoid simply by the following command. +The compilation is as simple as running the following command. ```bash cmake -B build -DCMAKE_BUILD_TYPE=Release . && cmake --build build @@ -81,7 +75,7 @@ If you simply execute the binary you will launch the GUI. The navigation there i "color" : { "name" : "periodic" }, - "center" : [ -0.75, 0 ], + "center" : [-0.75, 0], "zoom" : 1.1 } ``` @@ -97,10 +91,5 @@ File `fractal.png` will be created in the current directory. ## ⭐ Credits * [argparse](https://github.com/p-ranav/argparse) - Argument Parser for Modern C++. -* [glad](https://github.com/Dav1dde/glad) - Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. -* [glfw](https://github.com/glfw/glfw) - A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input . -* [glm](https://github.com/g-truc/glm) - OpenGL Mathematics. -* [imgui](https://github.com/ocornut/imgui) - Bloat-free Graphical User Interface for C++ with minimal dependencies. -* [imguifiledialog](https://github.com/aiekick/ImGuiFileDialog) - File dialog for Dear ImGui. * [json](https://github.com/nlohmann/json) - JSON for Modern C++. * [stb](https://github.com/nothings/stb) - Single-file public domain libraries for C/C++.