Skip to content

Commit

Permalink
Workflow Fix
Browse files Browse the repository at this point in the history
* workflow fix

* workflow fix

* workflow fix

* workflow fix

* update readme

* update readme
  • Loading branch information
GinOwO authored Oct 2, 2023
1 parent 5b85ee8 commit 09bb85a
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 33 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/c-cpp-build-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build Linux

on:
push:
branches:
- main
on: push

env:
QT_VERSION: "6.5.0"
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/c-cpp-build-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Build Windows

on:
push:
branches:
- main
on: push

env:
QT_VERSION: "6.5.0"
Expand All @@ -19,16 +16,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1.12.1

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
host: "windows"
target: "desktop"
arch: "win64_msvc2019_64"
aqtversion: '==3.1.*'
version: '6.5.0'
host: 'windows'
target: 'desktop'
arch: 'win64_mingw'
tools: 'tools_cmake tools_ninja'
cache: 'true'

- name: Install Ninja
Expand Down
37 changes: 20 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
MIT License
This is free and unencumbered software released into the public domain.

Copyright (c) 2023 Gin
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
For more information, please refer to <https://unlicense.org>
63 changes: 62 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,63 @@
# Caelum
[![LICENSE](https://img.shields.io/github/license/GinOwO/Caelum?color=blue)](LICENSE) ![Language](https://img.shields.io/badge/Language-C%2B%2B-brightgreen) ![Qt](https://img.shields.io/badge/Qt-6.5.0-brightgreen) ![GitHub csize](https://img.shields.io/github/languages/code-size/GinOwO/Caelum) [![Build Linux](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-linux.yaml/badge.svg?branch=main&event=push)](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-linux.yaml) [![Build Windows](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-windows.yaml/badge.svg?branch=main&event=push)](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-windows.yaml)
[![LICENSE](https://img.shields.io/github/license/GinOwO/Caelum?color=blue)](LICENSE) ![Language](https://img.shields.io/badge/Language-C%2B%2B-brightgreen) ![Qt](https://img.shields.io/badge/Qt-6.5.0-brightgreen) ![GitHub csize](https://img.shields.io/github/languages/code-size/GinOwO/Caelum) [![Build Linux](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-linux.yaml/badge.svg?event=push)](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-linux.yaml) [![Build Windows](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-windows.yaml/badge.svg?event=push)](https://github.com/GinOwO/Caelum/actions/workflows/c-cpp-build-windows.yaml)

WIP

## Downloading

To use the pre-built binaries follow the steps below

### Linux

Download `Caelum_Linux_x86_64.tar.gz` from releases and extract the contents to a folder. Then run `/DistributionKit/Caelum.sh`

### Windows

Download `Caelum_Windows_x86_64.zip` from releases and extract the contents to a folder. Then run `Caelum.exe`

## Building From Source

### Prerequisites

To build Caelum, you require the following on your system:

- C++20 or above (MSVC will fail to build so go for GNU GCC)
- Qt framework 6.5.0+
- Qt Creator Community 10.0.0+
- (Optional: Linux Building only) [CQtDeployer](https://github.com/QuasarApp/CQtDeployer)

### Cloning

Open a command line in your desired folder, clone the repo with the following command
```
git clone https://github.com/KThankYou/Caelum.git
```

## Building

### Windows
1. Open Qt Creator and load the project.
2. Switch to release and then build the project.
3. Copy the release exe from the build folder to your desired folder.
4. Open a command line in your bin folder in the Qt installation, ex: `"D:\Qt\6.5.*\mingw_64\bin"`
5. Use the `set PATH=<path_to_qt>;%PATH%` to use the Qt DLLs, ex:`set PATH=D:\Qt\Tools\mingw1120_64\bin;%PATH%`
6. Now run the `windeployqt6 "<path_to_exe>"` command to copy necessary DLLs to the exe folder, ex: `windeployqt6 "D:\Caelum\Caelum.exe"`

### Linux
1. Open Qt Creator and load the project.
2. Switch to release and then build the project.
3. Copy the release build from the build folder to your desired folder.
4. Open a terminal in the folder and copy the necessary files with CQtDeployer using `cqtdeployer -bin Caelum -qmake /path/to/Qt/6.5.*/gcc_64/bin/qmake`

## Usage
WIP

## Notes
WIP

## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on contributing to this project.

## License

This project is licensed under [The Unlicense](LICENSE).

0 comments on commit 09bb85a

Please sign in to comment.