Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tjira committed Apr 27, 2024
1 parent 684b2f0 commit 66dbe97
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/linecount.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand All @@ -54,23 +52,24 @@ 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:
runs-on: ubuntu-latest
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: |
Expand Down
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
```
Expand All @@ -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++.

0 comments on commit 66dbe97

Please sign in to comment.