Skip to content

Commit

Permalink
Remove Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlin96069 committed May 4, 2024
1 parent 2efb674 commit d72fe08
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 153 deletions.
74 changes: 31 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,61 +5,49 @@ on:
paths-ignore:
- '.gitignore'
- 'docs/*'
- 'syntax/*'
- 'themes/*'
- 'README.md'
- 'LICENSE'

jobs:
build:
name: Linux Build
build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true

- name: Setup build environment
run: sudo apt-get update && sudo apt-get install -y build-essential

- name: Prepare directories
run: make prep

- name: Build release
run: make release

- name: Build debug
run: make debug

- name: Archive release binary
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++
- name: Create Build Directory
run: mkdir build && cd build
- name: Configure CMake
run: cmake ..
working-directory: ./build
- name: Build
run: cmake --build .
working-directory: ./build
- name: Upload Linux Binary
uses: actions/upload-artifact@v4
with:
name: nino-linux
path: release/nino
name: linux-binary
path: build/nino

build-windows:
name: Windows Build
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true

- name: Prepare directories
run: make prep

- name: Build release
run: make release

- name: Build debug
run: make debug

- name: Archive release binary
- uses: actions/checkout@v4
- name: Install CMake
run: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Create Build Directory
run: mkdir build && cd build
- name: Configure CMake (Visual Studio)
# Automatically selects the latest Visual Studio version available on the runner
run: cmake -G "Visual Studio 16 2019" -A x64 ..
working-directory: ./build
- name: Build
# Build using the Visual Studio Build Tools
run: cmake --build . --config Release
working-directory: ./build
- name: Upload Windows Binary
uses: actions/upload-artifact@v4
with:
name: nino-windows
path: release/nino.exe
name: windows-binary
path: build/Release/nino.exe
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.vscode/
release/
debug/
build/

resources/bundler
resources/bundler.exe
resources/bundle.h
103 changes: 0 additions & 103 deletions Makefile

This file was deleted.

37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,45 @@ I'm not used to [Vim](https://www.vim.org/) and I don't like [nano](https://nano
- File explorer

## Build

This project uses CMake for building. Follow these steps to build the project:

### Prerequisites

- CMake (minimum required version, e.g., 3.15)
- A suitable C compiler (GCC, Clang, MSVC, etc.)

### Cloning the Repository

```bash
git clone https://github.com/evanlin96069/nino.git
cd nino
make
```
Then install the example config:

### Configuring the Build

Create a build directory and run CMake to configure the project:

```bash
mkdir build
cd build
cmake ..
```

### Building the Project

To build the project, run:

```bash
cmake --build .
```

### Optional: Installing the Project

If installation is necessary, you can install the project using:

```bash
cp docs/example.ninorc ~/.ninorc
cmake --install .
```

## Documentation
Expand Down

0 comments on commit d72fe08

Please sign in to comment.