-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: unit-testing and general improvements.
Added tons of features, examples like better builtin support, semi-normal shell functionality, unit-testing support, proper execution through execve.
- Loading branch information
Showing
47 changed files
with
4,277 additions
and
2,854 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CompileFlags: | ||
Add: [-Wall, -Wextra, -I./include/] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: C Test CI | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-24.04, windows-latest] | ||
include: | ||
- {sys: clang64, env: clang-x86_64} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Install mold on ubuntu systems | ||
if: matrix.os == 'ubuntu-24.04' | ||
uses: rui314/setup-mold@2e332a0b602c2fc65d2d3995941b1b29a5f554a0 # v1 | ||
- name: Install msys-clang on windows systems. | ||
if: matrix.os == 'windows-latest' | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.sys }} | ||
install: | | ||
libbsd | ||
git | ||
mingw-w64-${{matrix.env}}-just | ||
mingw-w64-${{matrix.env}}-clang | ||
- name: Install just on ubuntu | ||
if: matrix.os == 'ubuntu-24.04' | ||
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2 | ||
- name: Test build on windows | ||
if: matrix.os == 'windows-latest' | ||
shell: msys2 {0} | ||
run: just build | ||
- name: Test build on ubuntu | ||
if: matrix.os == 'ubuntu-24.04' | ||
shell: bash | ||
run: just build | ||
- name: Run unit-tests on windows | ||
if: matrix.os == 'windows-latest' | ||
shell: msys2 {0} | ||
run: just test | ||
- name: Run unit-tests on ubuntu | ||
if: matrix.os == 'ubuntu-24.04' | ||
shell: bash | ||
run: just test |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
/bin/ | ||
/out/ | ||
/build/bin/ | ||
/build/out/ | ||
/build/tests/ | ||
/hsh | ||
/hshell | ||
/hamon | ||
/tests/unity | ||
/vgcore | ||
/.cache | ||
/compile_commands.json |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(hamon) | ||
|
||
include_directories(include) | ||
|
||
add_executable(main src/main.c) |
This file contains 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
Oops, something went wrong.